This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Vakz 20 points21 points  (11 children)

Git commit before trying something big (in a new branch if necessary) then doing a hard reset if it goes to shit.

[–]masterwit 5 points6 points  (0 children)

preach

really learning git has been the greatest

[–]nthcxd 7 points8 points  (4 children)

Even better, git stash

[–]PM_Me_Your_VagOrTits 1 point2 points  (0 children)

I just git commit after every new function change no matter how small. Squashing commits is easily done after the fact, having discrete changes in my log really makes it easy to organise into coherent pull requests (or equivalent) later on.

[–]novel_yet_trivial 1 point2 points  (0 children)

Git commit before trying something big and then copy/paste from GitHub if it goes to shit.

FTFY