草庐IT

author_name

全部标签

git - : git log --exclude-author? 的等价物

在工作中,我们有一个git存储库,其中大部分提交都是机器人用户自动提交的。有时我更喜欢从那个repo查看git日志,但看不到自动提交。我想它可以被描述为倒置的“gitlog--author”或“gitlog--exclude-author=botuser”,如果存在这样的选项的话。目前我执行以下操作,快捷方式到bash别名。gitlog--format="%H%aE"|grep-v-Fbotuser@domain|whilereadhashemail;dogitlog-1$hash;echo;done|less我的问题是对于我想要完成的事情是否有更简单的解决方案?

git - 如何避免提交消息中出现 "Merge branch ' name_of_branch'?

我记得大约一年前,我做了一些merge,导致提交消息成为远程存储库上的Mergebranch'Name_of_branch'。根据我的内存,如果我重新设置分支中的所有提交,然后将其merge到master,然后推送到远程存储库,就会发生这种情况。但现在我不能用git-1.7.2.2重现它。修复了吗?或者有人可以解释这种情况是如何发生的,以及如何避免这种情况? 最佳答案 这是默认的merge提交信息。获得它不需要任何特殊的东西-只需将任何重要的merge到master中即可:-o-o-X(master)\/o-o(topic)提交X的

git - 如何避免提交消息中出现 "Merge branch ' name_of_branch'?

我记得大约一年前,我做了一些merge,导致提交消息成为远程存储库上的Mergebranch'Name_of_branch'。根据我的内存,如果我重新设置分支中的所有提交,然后将其merge到master,然后推送到远程存储库,就会发生这种情况。但现在我不能用git-1.7.2.2重现它。修复了吗?或者有人可以解释这种情况是如何发生的,以及如何避免这种情况? 最佳答案 这是默认的merge提交信息。获得它不需要任何特殊的东西-只需将任何重要的merge到master中即可:-o-o-X(master)\/o-o(topic)提交X的

Git 日志 : filter by commit's author date

我有这样的promisecommit8a183536da1641afa6bd5a27ae391b387b7cd052Author:hiddenAuthorDate:FriSep710:13:592012Commit:hiddenCommitDate:FriDec717:29:242012我想过滤日志并显示AuthorDate的提交。我尝试了--since和--until选项,但它实际上过滤了CommitDate。这意味着我只能通过获得提交gitlog--since='2012-12-01'--until='2012-12-10'如果我想通过start_date'2012-09-01'和

Git 日志 : filter by commit's author date

我有这样的promisecommit8a183536da1641afa6bd5a27ae391b387b7cd052Author:hiddenAuthorDate:FriSep710:13:592012Commit:hiddenCommitDate:FriDec717:29:242012我想过滤日志并显示AuthorDate的提交。我尝试了--since和--until选项,但它实际上过滤了CommitDate。这意味着我只能通过获得提交gitlog--since='2012-12-01'--until='2012-12-10'如果我想通过start_date'2012-09-01'和

git-commit - 致命的 : No existing author found with 'XXX'

第一次使用git,设置了用户名和用户邮箱。我使用的命令如下:gitconfig--globaluser.email"bob@example.com"gitconfiguser.email"bob@example.com"gitconfig--globaluser.name"bob"gitconfiguser.name"bob"当我运行gitcommit--author"bob"时,出现错误fatal:Noexistingauthorfoundwith'bob'。如何设置用户名和邮箱? 最佳答案 你应该停止使用--author每次提交

git-commit - 致命的 : No existing author found with 'XXX'

第一次使用git,设置了用户名和用户邮箱。我使用的命令如下:gitconfig--globaluser.email"bob@example.com"gitconfiguser.email"bob@example.com"gitconfig--globaluser.name"bob"gitconfiguser.name"bob"当我运行gitcommit--author"bob"时,出现错误fatal:Noexistingauthorfoundwith'bob'。如何设置用户名和邮箱? 最佳答案 你应该停止使用--author每次提交

git - 致命的 : The upstream branch of your current branch does not match the name of your current branch

在使用GitGUI检查远程分支releases/rel_5.4.1之后,当我尝试push时看到了这个意外的错误消息:fatal:Theupstreambranchofyourcurrentbranchdoesnotmatchthenameofyourcurrentbranch.Topushtotheupstreambranchontheremote,usegitpushoriginHEAD:releases/rel_5.4.1Topushtothebranchofthesamenameontheremote,usegitpushoriginrel_5.4.1我不知道Git在说什么。我可

git - 致命的 : The upstream branch of your current branch does not match the name of your current branch

在使用GitGUI检查远程分支releases/rel_5.4.1之后,当我尝试push时看到了这个意外的错误消息:fatal:Theupstreambranchofyourcurrentbranchdoesnotmatchthenameofyourcurrentbranch.Topushtotheupstreambranchontheremote,usegitpushoriginHEAD:releases/rel_5.4.1Topushtothebranchofthesamenameontheremote,usegitpushoriginrel_5.4.1我不知道Git在说什么。我可

git describe 失败并显示 "fatal: No names found, cannot describe anything."

我在Ubuntu10.10amd64上使用git1.7.1,我正在尝试提取我的存储库HEAD的哈希值,以便在我编译到我的项目中的自动化版本信息中使用它。过去,这总是通过使用gitdescribe--tags然而,git现在正在抛出fatal:Nonamesfound,cannotdescribeanything.对着我。有谁知道这是什么意思?谷歌只显示了很少的点击,没有解决方案。 最佳答案 如果你想要你的HEAD的ID那么你不需要describe,你应该只使用rev-parse.gitrev-parseHEAD如果你想要一个缩写的散