git worktree 目录修复

三种方式挨个尝试,1不行用2 2不行用3

1.拉取阶段失败

git worktree add -f -B xxx_branch ./xxx_branch origin/xxx_branch 强制拉取

2.删除worktree目录,再录取

git worktree remove xxx_branch

3.重置worktree分支代码

git reset --hard origin/xxx_branch

posted @ 2019-08-23 14:09  zipon  阅读(798)  评论(0编辑  收藏  举报