SourceTree commit doesn't do anything

In VSTS I have pulled the master, branched, made a change, staged the change, and clicked Commit and nothing happens.

 

I tried using a repo in GitHub. I pulled the master, made a change, staged the change and clicked Commit... and nothing happens.

What do I have to do to commit a staged file?

3 answers

Can you upload a screenshot of SourceTree's current state?

Also, why are you pulling, branching and staging in VSTS, but committing in SourceTree?

I'm only hosting the Git repo in VSTS. All the actions have been done in SourceTree.

I get the feeling it's asking/waiting for credentials but I can't see any way to get credentials to the app. I tried adding my credentials to the git config but that doesn't change anything.

The "Commit Options..." dropdown and the clock button do the same thing - Just don't respond.

SourceTreeCommit.jpg

 

Ok, that's very helpful. TL;DR - Looks like a bug.

Firstly, committing NEVER needs credentials. Commit is a local operation - it does not interact with remote repositories. Now, you're using SourceTree, which has a checkbox to automatically Push, which is a remote-interacting operation, so you may get both grouped together (you don't have that box checked though).

When you say you're pushing the commit button, I assume at this point that you are hitting the bottom-right button to try to actually finalize the commit (as opposed to the top-left button, which brings you to the view in the screenshot). Everything in the screenshot looks right and ready to commit. If the Commit, Commit Options.., and Recent Comment (clock) buttons aren't responding, that's got to be a bug. Nothing about the state of your repo should be preventing SourceTree from doing those operations.

You can report the bug to jira.atlassian.com. Hopefully Atlassian staff will be on top of it, and help you find the application logs they need to identify what's going on.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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 ...

649 views 0 4
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