GIT常用命令小结
2016-11-19 17:11
155 查看
1、git init 初始化
2、git add filename
3、git commit -m "commit comment"
4、git diff
5、git status
6、git log --pretty=oneline
7、git reflog
8、git reset --hard HEAD (ID)
9、git rm
10、git checkout --
11、git remote add origin git@github.com:XXX/XXX
12、git push origin master
13、git clone git@github.com:XXX/XXX
14、git stash | git apply
15、git cherry-pick
16、git rebase
17、git config --global user.name "junlon2006"
18、git config --global user.email "junlon2006@163.com"
19、git pull
2、git add filename
3、git commit -m "commit comment"
4、git diff
5、git status
6、git log --pretty=oneline
7、git reflog
8、git reset --hard HEAD (ID)
9、git rm
10、git checkout --
11、git remote add origin git@github.com:XXX/XXX
12、git push origin master
13、git clone git@github.com:XXX/XXX
14、git stash | git apply
15、git cherry-pick
16、git rebase
17、git config --global user.name "junlon2006"
18、git config --global user.email "junlon2006@163.com"
19、git pull