1)sync 有异常
1) git prior sync failed; rebase still in progress
git rebase --abort
git am --abort
2)commit 有丢失,切换回本地分支
2) discarding 3 commits
git checkout $BRANCHNAME
本文介绍了如何处理在使用Git过程中遇到的同步异常与丢失提交的问题。针对sync异常,提供了具体的命令来解决gitprior同步失败及rebase进行中的情况;对于commit丢失,则给出了恢复的方法,包括如何抛弃丢失的提交并回到之前的本地分支状态。
1)sync 有异常
1) git prior sync failed; rebase still in progress
git rebase --abort
git am --abort
2)commit 有丢失,切换回本地分支
2) discarding 3 commits
git checkout $BRANCHNAME
1479
7766

被折叠的 条评论
为什么被折叠?