git 常用命令
2017-05-26 15:40
218 查看
clone:
git clone git@10.1.100.100:kernel_imx
add:
git add .
push:
git status
git commit -a -m "message"
git push origin master
pull:
git pull
checkout:
git checkout <file>
git checkout <commit-hash-id> <file>
show commit:
git show <commit-hash-id>
log:
git log
git log -p <filename> //check the patch history of the file
git log <filename> //check the modification history of the file
git log --stat
diff:
git diff
git clone git@10.1.100.100:kernel_imx
add:
git add .
push:
git status
git commit -a -m "message"
git push origin master
pull:
git pull
checkout:
git checkout <file>
git checkout <commit-hash-id> <file>
show commit:
git show <commit-hash-id>
log:
git log
git log -p <filename> //check the patch history of the file
git log <filename> //check the modification history of the file
git log --stat
diff:
git diff