Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



git checkout 0110deadbeef -- file.py > new_name_for_temp_file.py




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: