Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
解决办法:
首先在GitHub中创建Personal access tokens
然后在右上角设置中修改SouceTree中的远程仓库路径
格式为https://<your_token>@github.com/<USERNAME>/<REPO>.git
<your_token>
:换成你自己得到的token
<USERNAME>
:是你自己github
的用户名
<REPO>
:是你的仓库名称
点击确定后就发现推送成功了
参考链接:
https://blog.csdn.net/weixin_41010198/article/details/119698015