Skip to content
Discussion options

You must be logged in to vote

Two processes sharing one working directory share one HEAD, so one git checkout silently redirects the other's next commit. Give each worker its own working tree: git worktree add ../repo-feature -b feature/x. Each worktree has an independent HEAD and index but shares the object store, so it's cheap and can't cross-contaminate. Clean up with git worktree remove.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kevinchamplin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant