One page
Git cheat sheet
What to keep at hand. If a line is not clear, go back to the matching lesson in the course.
Open the course: Git: getting startedSnapshot
| What | How |
|---|---|
| Status | git status |
| To the index | git add . |
| Commit | git commit -m "…" |
| Difference | git diff |
Branches and the remote
| What | How |
|---|---|
| New branch | git switch -c feature |
| Merge | git merge feature |
| Send | git push |
| Fetch | git pull |
| Put aside | git stash |
| Restore a file | git restore |