Reputation: 1760
On my local machine, I have the following branches:
master
my-branch-one
my-branch-two
In Atlassian Stash, I have the following branches:
master
The master
branch on my machine is up to date with the master
branch in Stash.
How do I get the other two branches that are currently only on my local machine, onto Stash?
Notes:
Upvotes: 1
Views: 1810
Reputation: 1323963
If those are actual local branches (visible when you type git branch
in the repo), then, following "using branches in Stash", you should see those branches in the branches field:
If your stash displays a remote repo (not your local repo on your machine), then you would need to push those 2 branches on your remote repo first, before Stash is able to detect them.
git checkout my-branch-one
git push -u origin my-branch-one
Upvotes: 1