One of the most important features of git in terms of AI is git worktree. It allows you to checkout different branches at the same time in different folders like so:

git worktree add <branch> path

And all worktrees share the common stash list between them. This is crucial for AI use in projects where you might be running a long training job in one worktree, while simultaneously preprocessing data in another, and fixing a bug in code in a third—all without conflicts or context switching.

One of the big drawbacks of git worktree in my opinion was always unintuitive syntax, where I always would have to look up how to do a specific thing.

My solution: gwt

To fix this, I created gwt, a simple helper that makes git worktree intuitive.

Onc…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help