使用git提交github代码

新的项目的提交

touch
README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/sailrancho/test.git git push -u origin master


旧项目的提交

git remote add origin https://github.com/sailrancho/test.git
git pull origin master

git add .*
git commit -m "edit commit"
修改对应内容(或者直接覆盖)
git push -u origin master

 

posted on 2014-06-27 14:54  出发的兰彻  阅读(194)  评论(0编辑  收藏  举报

导航