您的位置:首页 > 其它

git常用命令

2016-04-05 19:03 281 查看
1.查看提交日志

git log

git log - -author=xxx

2.创建分支/切换分支

git branch V1.0

git checkout V1.0

git branch -D V1.0

//查看远程分支

git branch -a

//把本地分支提交到git服务器 分支号与冒号之间不能有空格 不然提交失败

git push origin V1.0:V1.0

3.更新/提交

git commit -m “commit log” 1.java

git push

4.分支代码 bug分支V2.0->主干开发V1.0

–V2.0-

git log

获取Version前 8位 作为 commit-id

–V1.0-

git cherry-pick commit-id
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git