null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
6262977
GIT
Description
Mind Map on GIT, created by Edson Barbosa on 09/07/2016.
No tags specified
técnico
Mind Map by
Edson Barbosa
, updated more than 1 year ago
More
Less
Created by
Edson Barbosa
over 9 years ago
1
0
0
Resource summary
GIT
CRIAR UM NOVO PROJETO: git init
OBTER UM NOVO REPOSITORIO: git clone /caminho/rep
CLONAR SERVIDOR REMOTO: git clone usuario@servidor:/caminho/rep
FLUXO DE TRABALHO: ÁRVORES { WORKING DIRECTORY, INDEX, HEAD}
ADICIONAR E CONFIRMAR MUDANÇAS
NA ARVORE INDEX LOCAL: git add <arquivo> ou git add *
NA ARVORE HEAD LOCAL: git commit -m "Comentarios das alterações"
Enviando para servidor remoto: git push origin master
Conectando ao servidor remoto: git remote add origin <servidor>. Caso não tenha clonado
BRANCHS = "RAMOS"
CRIANDO E SELECIONADO NOVO BRANCH: git checkout -b "funcionalidade_X"
VOLTAR PARA O MASTER: git checkout master
REMOVER UM BRANCH: git branch -d "funcionalidade_x"
Enviado o branch para rep. remoto: git push origin <funcionalidade_x>
Atualizar ou Mesclar com Rep. Remoto
Local com versão do Rep. Remoto: git pull
De branch ao seu branch ativo: git merge <branch>
EM CASO DE CONFLITO, FAZER MANUAL: git add <arquivo>
VISUALIZAR ANTES DE FAZER MERGE DAS ALTERAÇÕES: git diff <branch origem> <branch destinho>
ROTULAR VERSÕES: git tag 1.0.0 1b2e1d63ff (exemplo de rotulo) igual ao SVN
VISUALIZAR O ROTULO: git log (lembrando que o ID do rotulo deve ser unico, exemplo: 1b2e1d63ff)
ALTERAR O LOCAL NO CASO DE ERROS: git checkout -- <arquivo>
ALTERA COM O CONTEUDO MAIS RECENTE DO HEAD
MANTÉM O INDEX E OUTROS ARQUIVOS ALTERADOS NO WORKING DIRECTORY TAMBÉM
REMOVER ALTERAÇÕES E COMMITS LOCAIS E HISTÓRIO DO SERVIDOR
COMANDOS NA SEQUENCIA: git fetch origin e git reset --hard origin/master
UTEIS:
INTERFACE GRÁFICA: gitk
SAIDA COLORIDA: git config color.ui true
LOG EM APENAS UMA LINHA POR COMMIT: git config format.pretty oneline
INCLUSÕES INTERATIVAS: git add -i
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
Git
Renan Garcia
Primeiros Passos Git e GitHub
Paulo Henrique
Primeiros passos com Git
Bruno Araújo
GIT E GITHUB
Wellinton Souza
Git
EFRAIM DE ANDRADE MORAIS JUNIOR
Browse Library