Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22851

Allow setting upstream branch when pushing an "upstreamless" branch

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.9.2
    • All

      If the local branch does not have an upstream on the remote the push will fail with a similar result:

       

      00:04 Running in /tmp/playground: /usr/bin/git push

      fatal: The current branch master2 has no upstream branch.

      To push the current branch and set the remote as upstream, use

       

      git push --set-upstream origin master2

       

      The command "/usr/bin/git" terminated with exit code 128.

       

      I think it would be useful if in this case a dialog would be shown for asking if the user would like to create an upstream branch.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            orgads Orgad Shaneh
            martonmiklos Miklós Márton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes