What’s the best git tutorial?

15 points by Student


I’ve volunteered to teach my colleagues about git - at least one of whom seems to know nothing of it.

Obviously, I don’t want to start from scratch. Which tutorials have helped you, or helped you get people up to speed?

We’re using gitlab, I don’t need to cover true distributed workflows, just forge-oriented git usage to collaborate with colleagues.

matklad

https://jwiegley.github.io/git-from-the-bottom-up/ is what helped me.

When I teach git, I usually suggesting focusing on state (git status, git log, git reflog), and googling the rest.

jcelerier

Whenever I teach git I take a whiteboard and redo something like this schema live while explaining every state and transition.

https://user-images.githubusercontent.com/14274827/91470661-9d5a8780-e8b2-11ea-9ccb-0d813d2e35d1.png

It gives a pretty clear mental model and makes inconsistencies very glaring (and thus easy to remember)

veqq

https://learngitbranching.js.org is by far the best. It is a game which shows you the actual graph so you can do transformations directly on it and gives you many byte sized exercises. You can do everything in 2 hours and be in the top 90% of git users.