正在从git&ŧ039;s恢复(无分支)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了正在从git&ŧ039;s恢复(无分支)相关的知识,希望对你有一定的参考价值。
# if you have already checked out to master, you won't know the commit-ish of your "no branch": git fsck --lost-found # (to find your <commit-ish>) git merge <commit-ish> # if you are still on your "no branch" commit: git log # (the commit-ish will be on the first line) git checkout master git merge <commit-ish> # or git log | head -n 1 | cut -d ' ' -f 2 | pbcopy git checkout master git merge <commit-ish>
以上是关于正在从git&ŧ039;s恢复(无分支)的主要内容,如果未能解决你的问题,请参考以下文章