我使用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
。为什么它仍然显示在日志中?它实际上是不是被删除了还是有一些日志标志我用错了?
答案 0 :(得分:4)
尝试执行git fetch origin --prune
以删除已移除的遥控器