I have created a git branch from master at a certain commit that is a bit behind. I made some updates and tried to push to that specific branch.
Steps I did:
After push I get the following error:
remote: Create pull request for [new-branch]:
When I try to checkout to my new branch of the staging server I get:
fatal: ambiguous argument 'origin/[new-branch]': unknown revision or path not in the working tree.
I don't know how to proceed further.
Yes it is a different server. I think my branch is only local or something.
I also tried to create a new branch from a JIRA task, as a hotfix, and there it detected by [new-branch]. And i created a new branch hotfix/[newer-branch] from the [new-branch], directly from the platform.
This doesn't work either, still doesn't see my branch.
Check what is the output of following command.
Next I would check if the remote is set up correctly:
git remote -v
Then see how the branch you are looking for is displayed (if it is, that is):
git branch -a
If you see no remote branches pointing to origin/master then execute following command:
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/master
This should set refs/remotes/origin/HEAD to point to the origin/master branch.
Hope this helps!
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events