github提交初始化
2017-12-12 本文已影响120人
这是我用来记录技术的一个博客
初始化
…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