Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-7067

Using git to push to a remote branch other than master results in error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Needs more info
    • Affects Version/s: None
    • Fix Version/s: Release 4.1.0
    • Component/s: None
    • Labels:
    • Story Points:
      5
    • Sprint:
      2014 Sprint 25 Studio

      Description

      When working with a project that is leveraging git as source control to a remote repository, you are unable to push to a remote branch other than master.

      • Add a new project from a project on github.
      • Create a new branch (check track)
      • make sure your project is currently selected to the branch you just created
      • Make changes to your project
      • commit the changes
      • attempt to push the changes from studio

      note the error in the console:

      fatal: The upstream branch of your current branch does not match
      the name of your current branch. To push to the upstream branch
      on the remote, use

      git push . HEAD:master

      To push to the branch of the same name on the remote, use

      git push . <YOUR BRANCH NAME>

        Attachments

          Activity

            People

            • Assignee:
              smishra Sujeet Mishra
              Reporter:
              bgrantges@appcelerator.com Bert Grantges (Inactive)
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: