2018年6月18日
摘要: 用户名和邮箱地址是本地git客户端的一个变量,不随git库而改变。 每次commit都会用用户名和邮箱纪录。 1、查看用户名和地址 git config user.name git config user.email 2、修改用户名和地址 git config --global user.name 阅读全文
posted @ 2018-06-18 22:47 坚守梦想 阅读(19904) 评论(1) 推荐(1) 编辑
摘要: git log --author=authorname --author=<pattern>, commits whose author matches any of the given patterns are chosen (similarly for multiple --committer= 阅读全文
posted @ 2018-06-18 22:46 坚守梦想 阅读(2494) 评论(0) 推荐(0) 编辑
摘要: 我们知道,在git进行cherry-pick的时候,找到commit id是至关重要, 如果我们是很多人在一个分支开发,开发完了之后,发现某个人的功能,需要单独cherry-pick到另外一分支上去。那么这个时候就要查询这个人的提交日志了。 使用git log --author=“author” 可 阅读全文
posted @ 2018-06-18 22:39 坚守梦想 阅读(45517) 评论(0) 推荐(4) 编辑
摘要: 场景: 在branch1开发,进行多个提交,这是切换到branch2,想把之前branch1分支提交的commit都【复制】过来,怎么办? 首先切换到branch1分支,然后查看提交历史记录,也可以用sourceTree查看,也可以用命令git log 例如我的git log 如下: commit 阅读全文
posted @ 2018-06-18 22:32 坚守梦想 阅读(2464) 评论(0) 推荐(1) 编辑
摘要: 比如我们有 2 个分支:master, dev,现在想查看这两个 branch 的区别,有以下几种方式: 1.查看 dev 有,而 master 中没有的: 1 同理查看 master 中有,而 dev 中没有的内容: 1 2.查看 dev 中比 master 中多提交了哪些内容: 1 注意,列出来 阅读全文
posted @ 2018-06-18 22:28 坚守梦想 阅读(53501) 评论(1) 推荐(6) 编辑
摘要: 转载至:https://www.zhihu.com/question/22268298 作者:YiPeiWu链接:https://www.zhihu.com/question/22268298/answer/218598489来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出 阅读全文
posted @ 2018-06-18 10:27 坚守梦想 阅读(1538) 评论(0) 推荐(0) 编辑