Although I prefer the Pro Git book, itβs clear that different resources are helpful to different people. For those looking to get an understanding of Git, Iβve linked to Git for Beginners: Zero to Hero π
The author of βGit for Beginners: Zero to Hero πβ posted the following on Reddit:
Hey there folks!
Iβve rewritten the git tutorial. Iβve used over the years whenever newbies at work and friends come to me with complex questions but lack the git basics to actually learn.
After discussing my git shortcuts and aliases elsewhere and over DMs it was suggested to me that I share it here.
I hope it helps even a couple of yβall looking to either refresh, jumpstart or get a good grasp of how common git concepts relate to one another !
It goes without saying, that any and all feedback is welcome and appreciated π
TL;DR: re-wrote a git tutorial that has helped friends and colleagues better grasp of git https://jdsalaro.com/blog/git-tutorial/
EDIT:
Iβve been a bit overwhelmed by the support and willingness to provide feedback, so Iβve enabled
hypothes.is
on https://jdsalaro.com for /u/NervousQuokka and anyone else wanting chime in. You can now highlight and comment snippets. β οΈ Please join thefeedback@jdsalaro
group via this link https://hypothes.is/groups/BrRxenZW/feedback-jdsalaro so any highlights, comments, and notes are visible to me and stay nicely grouped. Usinghypothes.is
for this is an experiment for me, so letβs see how it goes :)
Hey there, author here in case you folks have questions ππΌ
Git has a steep learning curve and everyone has a different way of learning things. So, kudos for taking the time for trying to clarify things.
Some unsolicited feedback: Most of the time, I see people struggling with git checkout
. And itβs not without a reason. checkout
has too much responsibility. Or, to put it in a more nuanced way, from the plumbing point of view it has a single responsibility, but from the userβs point of view it has many. So, I try to suggest using switch
and restore
instead of checkout
when appropriate. But old habits die hard, I still use checkout
for both of those things. I found a concise Stackoverflow answer. Maybe it would also clarify things for your audience?
from the plumbing point of view it has a single responsibility, but from the userβs point of view it has many
I wholeheartedly agree, Iβll add this edit to my backlog !
I see that your blog focuses on Git. Iβm not sure if you are aware, or not, but there is a Git community at https://programming.dev/c/git. Feel free to share links to your blogs.
Something Iβve been trying to figure out for a bit is how to restore hunks like gitk or vscode do via gui. It seems like it is an augmentation combination of cherry-pick and/or rebase. I prefer command-line, but if I need to do this one operation I fire up a gui, or restore lines with patch.
Any idea how to do it, or how it is done behind scenes in gui?