This document provides an overview of version control with Git. It discusses the history and features of Git compared to other version control systems like SVN. It also provides step-by-step instructions for common Git tasks like installing Git, initializing repositories, tracking files, branching, merging, and using remote repositories on platforms like GitHub.
4. 4
server command offline software(e.g.)
Local optional cp/mv/rm optional your brain
Centralized MUST simple no SVN
Distributed optional complex optional git
8. 8
you must know
● Repositories
– SVN has a central repository.
– Git has a personal repository, also has an official
repository.
● Revisions
– SVN revisions start at 1 and every commit
increment.
– Git revisions has 40-character SHA-1(you can think of
as random string).
26. 26
Set up Git
● Give a name
– git config --global user.name "Your Name
Here"
– git config --global user.email
"your_email@example.com"
● Caching my password
– git config --global credential.helper
cache