Easily the weakest part of my dev game is git, which is probably the most universally important tool to know.
I've been painting myself into frustrating git corners lately and I think I need to expand the number of commands I truly understand.
Thank you for listing ❤️
Oldest comments (18)
Hey, now - learn git concepts, not commands!
😬
Understanding Git concepts is easy. That takes like an hour. Understanding what it does when you type the command is hard. That part only comes from memory and the fear of explosions when you type the wrong thing.
Also bad architectural problems can be magnified with git. I used to work at a place that migrated an insane number of custom files into a single git-repo, and basically git add -A would result in silently adding thousands of files to your push, because it was configured to hide changes since it was so big you couldn't actually see the files you changed. Which meant manually tracking your file names on notepad and only adding those.
“A computer lets you make more mistakes faster than any other invention with the possible exceptions of handguns and Tequila.”
― Mitch Ratcliffe
Personally I use GitHub desktop
$ brew cask install github
I know, no real developer and no true scotsman should use a GUI for git.
But in fact, GitHub desktop is 10 times more usable than the command-line.
Gitkraken is by far the best GUI out there, no cap.
Hang in there. Everyone goes through this.
99% of the issues come from not quite understanding how git tracks changes when you try to merge.
Frustrating but learnable.
.05% come from a bad rebase. This is a hellscape.
.05% is forgetting to add a file when you commit.
A great way to learn is by getting started with a git client. Then extrapolate what you're doing. Some clients will even show logs of the commands that get run when you push the buttons.
There is not shame on it, I been using it since late 2017, is better late than never.
Also is recommend to focus learning to use it through CLI instead of desktop, there is more power via CLI 🤘
OhShit,Git!?! has saved me more than once
Don't mind me I am just bookmarking this for later...
I've done this too many times in my life.
Me too
who hasn't?
Same. Haven't had any major accidents in years, thankfully, but it's cryptic for sure.
I quite enjoyed this talk: Rules to git by. It probably won't help with your issues, but if you've got 45 minutes to spare, it's worth a watch.
ohshitgit.com/ is a must have reference!
Ben; I believe in you!