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

Git push to remote does not handle new branch

    XMLWordPrintable

Details

    • Windows
    • 5ef320d9fc3deea2c920c76a81362de39c3f17b9 (qt-creator/qt-creator/master)

    Description

      I've created a local branch. I want to push it to my remote git repository. If I try to do it through the dedicated menu (Tools->Git->Remote Repository->Push), I've got the error below.

      It is obviously very simple to type the command outside QtCreator. Once done, subsequent push commands from QtCreator will succeed as the branch has been created on remote.

       

      10:50 Running in D:\Cpp\Projets\Qt\GoogleSignIn: "D:\Program Files\Git\cmd\git.exe" push

      fatal: The current branch fixconstant has no upstream branch.

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

       

      git push --set-upstream origin fixconstant

       

      The command "D:\Program Files\Git\cmd\git.exe" terminated with exit code 128.

       

       

      Attachments

        1. preview-push-dialog-v1.png
          22 kB
          André Hartmann
        2. preview-push-dialog-v2.png
          5 kB
          asit-dhal

        Issue Links

          Activity

            People

              orgads Orgad Shaneh
              sr__ sr__
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: