Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aryherton/83094446a02dfafe0d531118749983b7 to your computer and use it in GitHub Desktop.
Save aryherton/83094446a02dfafe0d531118749983b7 to your computer and use it in GitHub Desktop.
Comandos GIT visto na aula de versionamento
git config
git status
git diff
git add
git commit
git log
git pull
git push
git push -u origin
git init
git add .
git commit -m "Deem uma mensagem de commit clara"
git branch -M main
git remote add origin git@github.com:username/new_repo
git push -u origin main
git init
git branch <nome_branch>
git branch --all
git branch -d <nome_branch> - deleta branch local
git checkout -t origin/<nome_branch> - checkout par ao branch remoto
git checkout
git commit -am -> Utilizado para adicionar modificações em arquivos já existentes e dar commit
git merge
git config credential.helper store
git remote add origin git@github.com:username/new_repo
git push -u origin master
git stash - pega as modificações e "guarda"
git stach apply - pega as modificações "guardadas" e aplica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment