Im trying to push to github with sourcetree but get the following error:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin
I found the answer here, it is a known bug for version 2.1.8+
The following steps fixed it for me:
Tools > Options > Git > Update Embedded Git
Also pushing with the command line works.
EDIT
Also adding @Latisha's answer:
1. Do the above.
2. Close Sourcetree
3. Delete AppData\Local\Atlassian\SourceTree\passwd
4. Restart SourceTree
I had the same problem and I fixed it by installing the latest version of git for windows
On Windows try:
I typed the wrong username (email address) when pushing and what worked for me was:
Open KeyChain Access search for SourcTree delete the 'login' item
Then go to Sourcetree > Preferences > Advanced and delete the default usernames that includes the wrong email address.
I struggled with this a lot, what solved it for me on my Mac is:
~/Library/
Application Support/SourceTree
folderFor SourceTree 2.7.6 for macOS using embedded git I followed all the suggested answers but still had the same problem.
The solution for me was to turn off two factor authentication.
Obviously not ideal, but sometimes you just need to get your work done.