Skip to content

Instantly share code, notes, and snippets.

@morvanabonin
Created October 30, 2020 18:37
Show Gist options
  • Save morvanabonin/fa11cb9251c832c78e0d7d98860132c7 to your computer and use it in GitHub Desktop.
Save morvanabonin/fa11cb9251c832c78e0d7d98860132c7 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