个人觉得这种方法push代码相对容易,不容易出错
step1:点击主仓库右上角的fork按钮,复制主仓库到自己的仓库下
step2:克隆自己仓库下的代码:git clone https://your_repo.git
step3:关联远程仓库:
git remote add mc(别名) https://xxx/master/xx.git
git remote -v
step4:git pull mc master
step5: git add -A
git commit -m “update remote”
step6:git push
之后每次push代码前,只需重复step4-6就可以了