git log --remotes --decorate显示已删除的分支?

时间:2015-09-17 18:22:13

标签: git git-log

我使用git log --oneline --remotes --decorate(没想到--oneline是相关的,所以它不在标题中)我得到这个日志(名称和消息已更改)

$ git log --oneline --remotes --decorate
0efdd55 (HEAD, origin/master, origin/HEAD, master) Merge pull request #1 in FOO/bar-service from develop to master
cec3034 (origin/develop, develop) Merge pull request #2 in FOO/bar-service from refactor-top-level-components to develop
a847a00 (origin/refactor-top-level-components, refactor-top-level-components) Remove an unnecessary file to fix compilation
029e107 (origin/feature/refactor-top-level-components) Add .gitignore, remove editor specific files and compiled output
72dffaf Initial bar service Commit

我在本地制作feature/refactor-top-level-components之后意外地通过BitBucket创建了refactor-top-level-components分支。我推了refactor-top-level-components并通过藏匿删除了feature/refactor-top-level-components。为什么它仍然显示在日志中?它实际上是不是被删除了还是有一些日志标志我用错了?

1 个答案:

答案 0 :(得分:4)

尝试执行git fetch origin --prune以删除已移除的遥控器