Git cheatsheet
Syntax snippets and quick notes for revision.
Git Introduction
git status git switch -c feature/git-introduction git add src/app git commit -m "Practice git-introduction" git log --oneline -3
Use this git introduction pattern when a Git task needs a small, readable starting point.
Install Git
git status git switch -c feature/install-git git add src/app git commit -m "Practice install-git" git log --oneline -3
Use this install git pattern when a Git task needs a small, readable starting point.
git init
git status git switch -c feature/git-init git add src/app git commit -m "Practice git-init" git log --oneline -3
Use this git init pattern when a Git task needs a small, readable starting point.
git add
git status git switch -c feature/git-add git add src/app git commit -m "Practice git-add" git log --oneline -3
Use this git add pattern when a Git task needs a small, readable starting point.
git commit
git status git switch -c feature/git-commit git add src/app git commit -m "Practice git-commit" git log --oneline -3
Use this git commit pattern when a Git task needs a small, readable starting point.
git status
git status git switch -c feature/git-status git add src/app git commit -m "Practice git-status" git log --oneline -3
Use this git status pattern when a Git task needs a small, readable starting point.
Branch
git status git switch -c feature/branch git add src/app git commit -m "Practice branch" git log --oneline -3
Use this branch pattern when a Git task needs a small, readable starting point.
Checkout
git status git switch -c feature/checkout git add src/app git commit -m "Practice checkout" git log --oneline -3
Use this checkout pattern when a Git task needs a small, readable starting point.
Merge
git status git switch -c feature/merge git add src/app git commit -m "Practice merge" git log --oneline -3
Use this merge pattern when a Git task needs a small, readable starting point.
Remote
git status git switch -c feature/remote git add src/app git commit -m "Practice remote" git log --oneline -3
Use this remote pattern when a Git task needs a small, readable starting point.
Push
git status git switch -c feature/push git add src/app git commit -m "Practice push" git log --oneline -3
Use this push pattern when a Git task needs a small, readable starting point.
Pull
git status git switch -c feature/pull git add src/app git commit -m "Practice pull" git log --oneline -3
Use this pull pattern when a Git task needs a small, readable starting point.