6 ms·
sometimes, especially when I'm trying to figure out something new, I like keeping the old exploratory code so I can grep through it or easily compare different
by jfoutz 4y ago
sometimes, especially when I'm trying to figure out something new, I like keeping the old exploratory code so I can grep through it or easily compare different approaches. It's less cognitive load than dealing with tags or branches or versions.
usually I end up with old/try1 old/try2 ... old/tryn
once I've worked out the way I really want to go, then I nuke old.
- OkayPhysicist 4y agogit checkout 0110deadbeef -- file.py > new_name_for_temp_file.py