I grew up with Linux and have used cvs, svn, git, and mercurial, not doing complex stuff, just basic. Out of all of them git is the most inconsistent and difficult to learn, both at the command level and in trying to deal with the docs and community around it. Everyone seems to think everyone else is a mathematician and every doc or message has this air of “if you don’t intrinsically understand DAGs then you’re just not worthy to use this tool”.
Re:Key Git Concepts Explained the Hard Way
by kccqzy on Wednesday March 14, 2018 @04:27PM
(#16588002)
Isn’t `git commit --amend` enough? No need to reset and commit again.
Re:Key Git Concepts Explained the Hard Way
by SiVal on Wednesday March 14, 2018 @04:58PM
(#16588230)
Sometimes it's easier to undo & redo. That's the reset approach. (Reset, your mistake goes away, do it over again but right, then commit.)
Sometimes it's easier to just make another change. That's the amend approach. (Keep what you've got, which was almost right, make another change--add, delete, or edit--so it's right, and re-commit as if you'd made that additional change from the start.)
Stackoverflow top item on how to redo a commit (one of most common things a new user may need to do):
I run a ton of aliases - some of them functions - just to do basics. I really like git - but it is a very steep learning curve for many.