初始化
…or create a new repository on the command line
echo "# qingshenwuyong" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/railsbug/qingshenwuyong.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/railsbug/qingshenwuyong.git
git push -u origin master
刪除所有內(nèi)容:
git rm -rf .
git add .
git commit -m "delete all"
提交本地代碼
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/railsbug/qingshenwuyong.git
git pull -u origin master
git push -u origin master
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者