您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: