git基础知识总结

1,clone

git clone https://github.com/KoMiles/helloword helloword

2,pull

git pull

3,commit

git commit -m '*update file' 

4,git push

git push https://github.com/KoMiles/helloword(远程目录) master(本地目录)

5,git 放弃本地修改 强制更新 

git fetch --all
git reset --hard origin/master

posted @ 2014-06-24 22:26  KoMiles  阅读(285)  评论(0编辑  收藏  举报