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

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-21154
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change