1

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:

  1. These are branches actual local branches.
power
  • 1,680
  • 3
  • 18
  • 30

1 Answers1

1

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:

https://confluence.atlassian.com/download/attachments/374440753/Stash030-branch-listing.png?version=1&modificationDate=1400053671600&api=v2&effects=border-simple,blur-border

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
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • yes, these are actual local branches. I have updated the question. In the "using stash" page that you linked to, it seems to just have instructions for creating new branches in stash, using the "correct" Stash conventions... – power Nov 25 '14 at 23:07
  • @power then Stash should detect your existing localbranch for you? Just make sure your setting are set to Custom (https://confluence.atlassian.com/display/STASH/Using+branches+in+Stash#UsingbranchesinStash-model) for the branch model. – VonC Nov 26 '14 at 06:58