git log --remotes --decorate 显示删除的分支?
git log --remotes --decorate shows a deleted branch?
我正在使用 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
我在本地创建 refactor-top-level-components
后不小心通过 BitBucket 创建了 feature/refactor-top-level-components
分支。我通过 stash 推送了 refactor-top-level-components
并删除了 feature/refactor-top-level-components
。为什么它仍然显示在日志中?它实际上没有被删除还是我使用错误的一些日志标志?
尝试git fetch origin --prune
摆脱移除的遥控器
我正在使用 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
我在本地创建 refactor-top-level-components
后不小心通过 BitBucket 创建了 feature/refactor-top-level-components
分支。我通过 stash 推送了 refactor-top-level-components
并删除了 feature/refactor-top-level-components
。为什么它仍然显示在日志中?它实际上没有被删除还是我使用错误的一些日志标志?
尝试git fetch origin --prune
摆脱移除的遥控器