Mac使用sourcetree 同步项目报错remote: [31mmark: Incorrect username or password (access token)[0m fatal: Au

使用Mac sourcetree时,拉取没问题,在推送时,报错remote: [31mmark: Incorrect username or password (access token)[0m fatal: Authentication failed for

Mac使用sourcetree 同步项目报错remote: [31mmark: Incorrect username or password (access token)[0m fatal: Au

网上找了很多方法:

git push -u origin master -f
git pull --rebase origin master
这些都没用!

重新新建文件也是报同样的错误.
最后在一篇博客中找到了答案:
添加本地库时用户名密码输入不正确,但是sourceTree没有去校验,直到push时才校验。

解决办法
在sourcetree 管理仓库的页面:选择设置->账户->高级->编辑用户名并输入密码,大功告成!

Mac使用sourcetree 同步项目报错remote: [31mmark: Incorrect username or password (access token)[0m fatal: Au
Mac使用sourcetree 同步项目报错remote: [31mmark: Incorrect username or password (access token)[0m fatal: Au