Please enable JavaScript.
Coggle requires JavaScript to display documents.
GIT (COMANDOS (BRANCH (VISUALIZAR AS BRANCHES EXISTENTES
git branch
git…
GIT
COMANDOS
-
-
-
BRANCH
-
-
-
-
-
-
VERIFICAR AS ATUALIZAÇÕES DA BRANCH REMOTA
Este comando verifica todas as atualizações que foram realizadas no repositório de atalho origin.
git fetch origin
-
-
-
-
-
-
-
PARA LEVAR OS NOVOS COMMITS DA MASTER PARA A BRANCH DE DESENVOLVIMENTO
git checkout master
git pull
git checkout [branch]
git rebase master
PARA REALIZAR O MERGE DA BRANCH DE DESENVOLVIMENTO COM A MASTER
git checkout master
git merge [branch]
-
PARA FAZER O REVERT DE UM ARQUIVO DE ACORDO COM O SEU ESTADO NA MASTER
git checkout master [nome-do-arquivo]
COMANDOS
-
PARA REVERTER UM DETERMINADO COMMIT
git revert -n [HASH]
O -n faz com que as alterações do revert sejam adicionadas no Working Directory e também no Index*
-
Para guardar as alterações que estão no working directory e index e retornar ao estado do último commit
git stash
-
-
-
-