git initInitialize a new repository
git clone [url]Clone a repository
git statusCheck file status
git add .Stage all changes
git commit -m 'msg'Commit changes
git push origin mainPush to remote
git pullPull latest changes
git checkout -b [branch]Create new branch
git merge [branch]Merge branch into current
git stashTemporarily save changes
git log --onelineView commit history compactly
git reset --soft HEAD~1Undo last commit (keep files)