3 ms·
How would that work when someone is working on a feature/bug and has to pause switch to a another bug, then return to the 1st feature/bug Sometimes you want to
by zaphirplane 3y ago
How would that work when someone is working on a feature/bug and has to pause switch to a another bug, then return to the 1st feature/bug
Sometimes you want to keep 2 different copies of Main with different names and state
- eru 3y ago> Sometimes you want to keep 2 different copies of Main with different names and state Wouldn't that just be two different branches? What does it have to do with 'main'?
- zaphirplane 3y ago> git has no idea what branch I want to push to Maybe i misunderstood what they mean, I thought they wanted local branches to be mirrors of origin branches.
- james-skemp 3y agoWorktrees perhaps? https://git-scm.com/docs/git-worktree https://git-scm.com/docs/git-worktree Can't recall the source I learned from anymore, but this looks pretty good: https://www.gitkraken.com/learn/git/git-worktree https://www.gitkraken.com/learn/git/git-worktree I have two projects where I've got a directory that I do most of my work out of and another directory (worktree) focused on syncing from remote/assisting others on the team. If you don't need the extras worktree gives you, clone another copy?
- eru 3y agoI use worktrees instead of multiple clones mainly so I only have to worry about remembering to 'fetch' once.