git.exe push --progress "origin" master:master
remote: You are not allowed to push code to this project.
fatal: unable to access 'http://xxx:8086/ennt/wr.git/': The requested URL returned error: 403
git did not exit cleanly (exit code 128) (860 ms @ 2021/5/6 17:10:20)
首先判断当前git账号是否真的有该工程的操作权限
1、没有权限
在git工程下加上权限
2、有权限
我就是属于这个情况,
解决方法:重置git的认证设置
git config --system --unset credential.helper
然后在git push的时候重新输入git的账号和密码即可
备注:每次操作都输入账号密码比较麻烦,输入下面命令保存账号密码(第2次生效)
git config credential.helper 'cache --timeout=3600'