git remote add origin git@xxx.git --error orgin此时在错误的origin上进行提交代码 就会报错fatal: remote error: Permission denied 想要撤回错误的origin需git remote rm orgin然后再给出正确的origingit remote add origin git@XXX.git --correct orgin 就可以正确提交代码了