我正在使用 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
并通过 stash 删除了 feature/refactor-top-level-components
。为什么它仍然显示在日志中?它实际上没有被删除还是有一些我使用错误的日志标志? 最佳答案
尝试做 git fetch origin --prune
来摆脱已删除的 Remote
关于git log --remotes --decorate 显示已删除的分支?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32637429/