初始化
…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
删除所有内容:
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