Tutorial para os Alunos da UNINOVE
Cheatsheet GitHub em Português - PDF
Instalação:
- MacOS:
brew install git
- Linux:
sudo apt-get install git
- Windows:
choco install git
- Configuração
git config --global user.name "[Nome Sobrenome]"
git config --global user.email "[email valido]"
- Pulls/Forks
git clone
git pull
- Commits
git add arquivos
ougit add .
git commit -m "Mensagem do Commit"
- Pushs
git push -u origin main
- Logs
HEAD
,HEAD~
eHEAD~{n}
git diff
git status
git log
egit log --graph
- Branches
git branch
egit branch [nome-do-branch]
git checkout [nome-do-branch]
- Reset
git reset --soft
versusgit reset --hard
- Pull Requests
git push -u origin [nome-do-branch]
- Merging no Master/Main
- GitHub Actions