- Initialize a repository with
git init
- Stage your files with
git add .
- Whenever you made a substantial change, put it into the history with
git commit -m "a commit message"
- See your history with
git log
- Move around (history and branches!) with
git checkout <specific number>
- Create new branches with
git checkout -b <branche-name>
- To collaborate, first
git pull
others changes, thengit push
yours 1