在我们的回购中,我们最终会收到很多这样的提交:
Merge branch 'master' of bitbucket.org:user/repo
Run Code Online (Sandbox Code Playgroud)
每当开发人员将他/她的本地分支同步到顶级仓库时,就会发生这种情况.
无论如何要避免这种合并提交地狱混乱所有的回购日志?在以某种方式启动拉取请求时可以避免它们吗?
我知道如果仅在我的本地VM中完成,我可以执行git rebase,GitHub/BitBucket UI中是否有任何等价物?
你们是怎么做到的?
它说,在git社区书中
您可以做的另一个有趣的事情是使用'--graph'选项可视化提交图,如下所示:
Run Code Online (Sandbox Code Playgroud)$ git log --pretty=format:'%h : %s' --graph * 2d3acf9 : ignore errors from SIGCHLD on trap * 5e3ee11 : Merge branch 'master' of git://github.com/dustin/grit |\ | * 420eac9 : Added a method for getting the current branch. * | 30e367c : timeout code and tests * | 5a09431 : add timeout protection to grit * | e1193f8 : support for heads with slashes in them |/ * d6016bc : require time for xmlschema它将为提交历史记录行提供非常好的ASCII表示.
我该如何阅读此图表?如何420eac9从剩下的有什么不同?