question about options in push window dialogue

I just started using Git Flow, and am confused.  When I go to push my commit, the push dialogue opens, and I'm unsure what to select.  I have four possible branches: develop, master, origin/develop, and origin/master.  And then each one has a Track? box beside it that is either unchecked, checked, or has a black box.  The default is develop, and seems to be working fine.  Just looking for some clarification.

First question, what is the difference between the Track? box being checked and having a black box?

Second question, why can I select two versions of each branch?  I don't really get why I would be pushing to develop vs origin/develop.

Third question, is there a user manual for sourcetree that explains this stuff?  All I've found is some extremely basic documentation, would love a much more in-depth description of what things do. 

Thanks!

1 answer

0 votes

Hi Todd, let's reply to your questions one by one:

1. The track box:

  • Checked = Set the remote branch to be the one the local branch should track.
  • Unchecked = Stop the local branch tracking anything.
  • Mixed (-) = Don't change any tracking on this branch, leave it as-is (this is the default).

2. That's a bug and was reported at SRCTREEWIN-7056, it will be fixed in version 2.1. Please watch that ticket to be notified of further updates! 

3. Regarding the 'tracked' branch, this is the default remote branch for the local branch, so if you use 'git pull' or 'git push' Git knows which remote branch to use.

SourceTree uses the tracked branch to know what state you are in locally. If you switch the 'tracked' branch, SourceTree will show that new branch by default next time you open the push/pull dialogs. SourceTree will also change how it displays the notifications of how many commits ahead/behind your local branch is.

For more info I recommend you reading https://git-scm.com/book/en/v2.

If you want to learn more about SourceTree in general, our Knowledge Base is a good resource.

Hope this helps, Todd!

Cheers,

Ana

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

234 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot