Re:Understanding Git for real by exploring the .git directory
by matt4077 on Sunday February 21, 2016 @10:21AM
(#11144819)
Yeah, I used to race through svn workflows without a second thought. With svn, I still don't understand how to (just one example) throw away all the local changes. (No, not git reset --hard. At least that didn't work when I last tried).
It came to the point where I thought about spending a week just learning git to defend my berd creds.
Instead, I just use a gui for anything beyond add/comit/push. I still don't like not to understand one of my daily tools, but I have real work to do.
Re:Understanding Git for real by exploring the .git directory
by barrkel on Sunday February 21, 2016 @07:51PM
(#11147558)
I found I had to build a whole parallel patch management system to rationally deal with svn. Applying the same patch in multiple branches was a royal PITA in svn; in git, it's trivial.
git status will tell you how to throw away local changes, btw. Depending on the kinds of changes (e.g. edit/delete added, staged or not) need different commands.
How Git works can be easily drawn out on paper to explain it to someone. The branches, commits and merges is simple to draw.
When we lose sense of our state we always take a piece of paper and draw it out. Most of the time you can just figure it out what's up.