Git cheatsheet
Recommended VSCode extensions
Git commands
add
Add a file to the staging area
branch
Create a new branch
checkout
Switch to a branch
clean
Remove untracked files from the working tree
clone
Create a local copy of a remote repository
commit
Commit changes
fetch
Download the latest contents from a remote repository
push
Push changes to remote repository
pull
Update local repository to the newest commit from remote repository
merge
Merge changes from a branch into another branch
rebase
Reapply commits on top of another branch
reset
Discard local changes
revert
Revert existing commit and create a new commit to record them
status
Check status of the current working tree and staging area