Notes
Commit GIT
Content of the notes (1)
Page 1
git commit -am ''texto
Mandar pro gerrit
git push origin HEAD:refs/for/
Vai direto pro servidor
git push origin
git checkout -- ARQUIVO - Desfaz alterações antes do commit. Ou seja, pega informações do ultimo commit
git reset HEAD ARQUIVO retira arquivo adicionado pelo git add *
git commit --amend - Se existir algum arquivo ainda no git add, ele adiciona junto e abre opção para alterar a msg.
Como renomear commits no Git git pull
git rebase --interactive ID^ Não se esqueça de adicionar ‘^’ ao fim!
‘pick’ para ‘edit’.
git commit --all --amend
git rebase --continue
git push -f
fonte: http://felipemaziero.eti.br/como-renomear-commits-no-git/
git reset -- hard ID - volta para o id que escolheu
git push -f origin BRANCH força atualização remoto
Information
- Description
- 1 Gestor de Configuração Note on Commit GIT, created by emaildocaco on 11/09/2015.
- Created by
- emaildocaco
- Views
- 0
- Rating