4 ms·
> you can royally screw up your repository with the wrong command You already mentioned the reflog, which makes Git screw ups a non-issue. But the only time
by alexeiz 8y ago
> you can royally screw up your repository with the wrong command
You already mentioned the reflog, which makes Git screw ups a non-issue. But the only time I seriously messed up something was when I used Git commands without full understanding what they actually did (two weeks into learning Git). This was mitigated by RTFM, which clearly explained what I did wrong. Since then I never listen to advises like 'just use this git command', but read the manual first.
I noticed that most people who have problems with Git don't understand basic Git concepts like branch, remote, staging, commit, ref. These concepts are really not that hard. Once you get familiar with them everything else with Git is a breeze. But I'm surprised how stubborn people are at not willing to spend a little time to learn. They just want you to tell them Git commands. But Git commands are not important. I personally don't remember exact command parameters, because I can always look them up in the man page. Git concepts is what makes you proficient with Git.