Git

Version control basics

git init / clone
Start a repo / clone
git init
git clone URL
git
git status / add / commit
Stage and commit changes
git status
git add .
git commit -m "msg"
git
git switch / checkout
Switch/create branches
git switch -c feature/x
gitbranches
git pull / push
Sync with remote
git pull
git push origin main
gitremote
git log --oneline --graph
Pretty history
git log --oneline --graph --decorate --all
git
git stash
Shelve work temporarily
git stash
git stash pop
git