Does this look familiar?
Sadly it's not that far from the truth for many users of Git, and doesn't always improve with more exposure.
One analogy could be made with the following comic.
In this case each blind man could represent a different Git command. By just running the commands, there are a number of cases where what you think Git is doing is not what it's actually doing.
In particular this often involves commands relating to branches, and pushing/pulling from a remote server.
This material is not intended to teach advanced Git
(eg. run git magic --hard --all
and you'll be more 100x more productive).
The aim is to focus on a few critical aspects of Git that can often cause
the most amount of confusion.
Everything in this guide assumes some form of terminal/command-line with git
installed.
For Windows this means Git for Windows,
ideally in the msysgit
terminal and not Windows Cmd
.
If you're not sure try running ls
, cd
or cat README.md
, the
examples make some use of these commands.
No GUIs.
- http://www.infoq.com/presentations/A-Tale-of-Three-Trees
- https://git-scm.com/book
- http://www-cs-students.stanford.edu/~blynn/gitmagic/
- http://eagain.net/articles/git-for-computer-scientists/
- https://dev.to/unseenwizzard/learn-git-concepts-not-commands-4gjc
- https://app.pluralsight.com/library/courses/how-git-works (paid)