如果修改过远程仓库的验证方式后SourceTree出现提交错误之类十有八九是让SourceTree保存了你旧的错误的密码信息

解决:

Windows

删除 /用户名/AppDate/Local/Atlassian/SourceTree/userhosts中的内容

Mac

删除~〜/ Library / Application Support / SourceTree / 里面保存的文件