git init # Initialize a new Git repository
git clone <repo> # Clone an existing repository
git add <file> # Stage changes for commit
git commit -m "msg" # Commit changes with a message
git push # Push changes to a remote repository
git pull # Pull changes from a remote repository
git branch # List branches
git checkout <branch> # Switch to a different branch
git fetch origin master # Updates origin/master
git rebase origin/master # Rebases current branch onto origin/master
git push --force origin branch # Push changes to branch
git reset HEAD~1 # Revert last commit
git reset --hard # Revert local changes
git clean -fxd # Remove local files deep clean