初始化
…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
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。