News for hackers. Stuff that matters.
Re:Putting the I back in IDE by rasjani on Thursday March 29, 2018 @04:25AM (#16705438)
Or git worktree
Re:Putting the I back in IDE by sjakobi on Thursday March 29, 2018 @07:47AM (#16706201)
Oh, I had never heard of that command before. Does it work well, i.e. does it improve your workflow?
Re:Putting the I back in IDE by lozenge on Thursday March 29, 2018 @08:26AM (#16706405)
I generally have a worktree to develop in, and one for code reviews. So I can leave some indexed and some uncommitted changes in the first one, open a second IDE against the second one and use "find usages", "go to implementation" and other code navigation features missing from GitHub.

You can also create a worktree for a quick experiment (eg how many conflicts when I merge X and Y) and just rm it when you're done.

Sure, all these things can be achieved with git stash and git reset... but they are both difficult to keep track of and will cause your IDE to run its expensive reindexing.

It's kind of like how you could use pushd/popd and open subshells to work in one shell, but people prefer to just open another terminal window.

Re:Putting the I back in IDE by mezzode on Thursday March 29, 2018 @08:12AM (#16706312)
+1 for git worktree, it's great for making temporary copies of a repo when you need them