git技巧

1.强制push到远程

git push -f origin master

2.fatal: remote origin already exists 错误解决办法

git remote rm origin
git remote add origin https://github.com/xxx/xxx-demo.git 
git push -u origin master

  

原文地址:https://www.cnblogs.com/taojintianxia/p/6483728.html