git命令提交新项目

新建的项目没有与git关联过
git init
git add .
git commit -m "注释"
git remote add origin 新SSH:URL
git push -f origin master:master


与git关联过的项目
git remote remove origin
git remote add origin 新SSH:URL
git push -f origin master:master

猜你喜欢

转载自www.cnblogs.com/lizihao/p/10331984.html