sourcetree:你能逆转"finish feature"吗?
sourcetree: can you reverse "finish feature"?
我在git流中误做了"finish feature"(没有删掉),能改过来吗?
使用 git log
查找历史记录并在两个分支上复制合并前最后一次提交的哈希值。
git checkout develop
git checkout -b feature
git reset <hash of feature commit before merge> --hard
git checkout develop
git reset <hash of develop commit before merge> --hard
我在git流中误做了"finish feature"(没有删掉),能改过来吗?
使用 git log
查找历史记录并在两个分支上复制合并前最后一次提交的哈希值。
git checkout develop
git checkout -b feature
git reset <hash of feature commit before merge> --hard
git checkout develop
git reset <hash of develop commit before merge> --hard