git clone https://github.com/usuario/repositorio.git
git init
git add arquivo.txt
git commit -m "Mensagem do commit"
git status
git log
git checkout -b nova_branch
git checkout main
<br>
git merge nova_branch
git checkout -- arquivo.txt
git revert HEAD
git pull origin main
git diff
git branch
git branch -d nome_branch
git reset arquivo.txt
git reset --hard HEAD~1
git log --oneline
git push origin nome_branch
git remote add origin https://github.com/usuario/repositorio.git
<br>
git push -u origin main
git rebase main
git diff branch1..branch2
git push origin --delete nome_branch
git clone --depth 1 https://github.com/usuario/repositorio.git
git rebase -i HEAD~3
git format-patch -1 HEAD
<br>
git apply patchfile.patch
git tag -a v1.0 -m "Versão 1.0"
git push origin v1.0
git shortlog -s -n
git fetch origin
git mergetool
echo "./verifica_codigo.sh" > .git/hooks/pre-commit
<br>
chmod +x .git/hooks/pre-commit