git init
- Create a repo from scratch.
git clone
- Copy a repo from GitHub or other remote repo.
git add
- Stage files or file changes to your local repo.
git commit
- Commit (Save changes as a record) to the local repo.
git merge
- Add changes from another branch onto current branch.
git checkout
- The command to switch between branches.
git branch
- create a branch, or list branches (-a).
git push
- Send local changes on a branch to GitHub (or other remote repo).
git pull
- Get remote changes from a branch on GitHub and merge to your local repo.
git remote
- List remote repo addresses (like GitHub).
git status
- Check the current state of the repo.