使用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
上一篇:Xcode6:模拟器消失了?


下一篇:Remove Duplicates From Sorted Array leetcode java