Esse arquivo irá ter todos os comandos do curso de Git.
$ git config --global user.name "Nome"
$ git config --global user.email "[email protected]"
$ git init
$ git status
$ git log
$ git log --full-diff -p <file>
$ git log --oneline --graph --all --decorate #faz um log dos branchs bonito
$ git checkout -- <file> #Desfazer a mudança no arquivo <file>
$ git checkout -b <name> #cria e faz checkout na nova branch
$ git checkout <name> #Alterna entre as branchs
$ git branch <name> #cria uma nova branch sem mudar
$ git tag #lista as tags
$ git tag -a <tag> -m <message> #adiciona uma nova tag
$ git tag -d <tag> #apaga a tag
$ git show <tag> #mostra o log da tag
Comandos para fazer um primeiro push
$ git remote add origin <url>
$ git push -u origin master #somente na criação do repositório
$ git clone <url>