When I try to pull a sub repo via command: git subrepo pull eric-tmp, got error:
git-subrepo: There is already a worktree with branch subrepo/eric-tmp.
Use the --force flag to override this check or perform a subrepo clean
to remove the worktree.
Don't understand why this happen ? The subrepo version is 0.4.0.
BTW, really can't find a simple & working tutorial for git-subrepo on internet.
Here is a short intro:
https://github.com/ingydotnet/git-subrepo/wiki/Basics
You can try to run git subrepo clean eric-tmp and then retry your pull command.
I get the same message, and don't understand why the subrepo needs "cleaning" before being able to run pull?
With normal git, as long as you have your index and working-tree committed/resolved, git pull works, correct? (at least that's been my experience as far as I've used it)
So what is the extra complication that occurs when using git subrepo pull?
@grimmySwe Is there a succinct way of explaining why the error message occurs, despite a committed/resolved index and working-tree? Or is it too complicated to explain without existing background knowledge?
Most helpful comment
Here is a short intro:
https://github.com/ingydotnet/git-subrepo/wiki/Basics
You can try to run
git subrepo clean eric-tmpand then retry your pull command.