git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
git config --list
git init
git clone https://github.com/user/project.git
git status
git add file.txt
git add .
git diff
git commit -m "Clear commit message"
git commit -am "Message"
git log
git log --oneline --graph --decorate
git show <hash>
git branch
git branch new-branch
git checkout new-branch
git switch -c new-branch
git merge other-branch
git branch -d branch
git remote -v
git remote add origin https://github.com/user/project.git
git push -u origin main
git pull
git fetch
git restore file.txt
git restore --staged file.txt
git reset --hard HEAD
git revert <hash>
git clean -fd
git stash
git stash pop
git tag v1.0