git 使用

git 使用

step by step

  • git init
  • git add .
  • git commit -m "about this commit info"
  • git reomte add origin https://github.com/xiankui/code.git
    1、git remote -v => 检测是否已经存在origin
    2、git remote rm origin => 移除现有origin,进而重新添加
  • git pull origin master
  • git push -u origin master

参考资料:

原文地址:https://www.cnblogs.com/xiankui/p/4174101.html