News for hackers. Stuff that matters.
Re:Lesser known Git commands by bandushrew on Sunday October 02, 2016 @03:54AM (#12621447)
If code is important enough to me that I care whether or not I lose it, I commit and push.

I prefer to commit discrete change sets (not features, or stories, just a discrete set of changes that achieve a piece of what I am wanting, dont break the code base and dont break the build).

I have heard that phrase, I live by it and encourage others to do the same. it is especially important when working as a part of a bigger team on the same area of the code.

Teams that commit early and often are happy teams :)

OTOH I use stash constantly, multiple times every day, when switching between branches, because sometimes its just handy to be able to put stuff aside to look at something else.

I dont recall ever losing code because of it, but it is certainly possible and its not hard to see how it could happen.

There are no comments on this comment yet.