Created
January 2, 2020 20:09
-
-
Save lucianobarauna/4da90f1f888d30ac8d6ba4e45628150d to your computer and use it in GitHub Desktop.
Meu arquivo config do git com alguns alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
# Apaga tudo staged o unstaged. | |
dismiss = reset HEAD --hard | |
# Desfaz o último commit e joga os arquivos que estavam nele novamente no workspace. | |
rollback = reset --soft HEAD~1 | |
# git unstage -- seuArquivo desfaz o última coisa no seu arquivo e sai do commit podendo ser adicionado novamente. | |
unstage = reset HEAD -- | |
# git undo -- seuArquivo descarta a última alteração | |
undo = checkout -- | |
# remove o último commit | |
redo = commit --amend --no-edit | |
# limpa todas as referências que não estão sendo mais utilizadas | |
sane = remote prune origin | |
# mostra os logs do git mais usual | |
lg = log --all --graph --decorate --oneline --abbrev-commit | |
# mostra o status e status do arquivo | |
st = status -sb | |
# mostra todas as branchs | |
branches = branch -a | |
# mostra os repositórios | |
remotes = remote -v | |
# faz checkout | |
co = checkout | |
# faz commit | |
cm = commit -m | |
# adiciona tudo e commita | |
acm = !git add . && git commit -m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment