![[Git command#^definition]]
![[Git commands.canvas|Basic git commands]]
Basic commands:
- [[git clone]]
- [[git status]]
- [[git add]]
- [[git commit]]
- [[git push]]
- [[git fetch]]
- [[git pull]]
- [[git merge]]
^git-commands
## Getting started
- [[git config]]
- [[git status]]
New repo
- [[git init]]
Existing repo:
- [[git clone]] - download a repository to your computer
## Using branches
- [[git checkout]] - switch to a different branch
- [[git branch]]
## [[Git pushing changes|Pushing your changes]]
- [[git add]] - select changes to include in the next commit
- [[git rm]] - unselect changes to exclude in the next commit
- [[git commit]] - save selected changes as a labeled snapshot
- [[git push]] - send your save points to the shared repository
## Pulling changes
- [[git fetch]] - download updates without applying them yet
- [[git pull]] - download and apply the latest updates
- [[git branch]] - list or create parallel lines of work
## Combining you work with outhers
- [[git merge]] - combine work from one branch into another
- [[git rebase]]
## Comparing work
- [[git diff]] - see what has changed since the last save point
## Debugging
- [[git log]]
- [[git bisect]]
## Other
- [[git tag]]
- [[git reset]]
- [[git cherry-pick]]
- [[git stash]]