How do I commit new files to Git using SourceTree?

We use Visual Studio, and currently when we add new files to the project we cannot get them to show up in SourceTree in order to commit and push. Can you please provide some guidance on the best way to use Git/BitBucket/SourceTree with Visual Studio?

3 answers

1 accepted

This widget could not be displayed.

After some testing, it seems to me the best option is to use VS 2012 and install the Git plugin. Add new files and commit in VS and then move back to source tree to push and make a pull request. I'd still love more comments or feedback from others though!

This widget could not be displayed.

Hey Jason,

Perhaps this is because your filters weren't set up correctly? When looking at the 'Working copy' there's a filter next to the search box that'll say something like "Show pending". You'll want to make sure this filter is set to something that'll pick the files up when they're newly added.

Hope that helps

This widget could not be displayed.

In Source Tree, the "Unstaged files" display should show any new files that you have moved into the source directories. You may have to do some scrolling to find them because the directories are not in alphabetical order. When you find the file(s), select them and then right-click and choose "Add". Now they are staged and you can commit and push them as if they already existed in the project.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

731 views 1 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