Last active
December 14, 2015 04:49
-
-
Save jampow/5030712 to your computer and use it in GitHub Desktop.
.gitconfig color and aliases
This file contains 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
[color] | |
ui = auto | |
[user] | |
name = Gianpaulo | |
email = jam_pow@hotmail.com | |
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
rb = rebase | |
lg = log --pretty=format:'%Cgreen%h %Cblue%ad %Cred%cn %Creset%s' --date=short | |
ffc = diff-tree --no-commit-id --name-only -r | |
spull = !git-svn fetch && git-svn rebase | |
spush = !git-svn dcommit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Listar arquivos modificados
Os parâmetros
--name-only --pretty=format: | sort | uniq
passados para os comandos diff ou log trazem uma lista sem repetição dos arquivos que foram modificados.Exemplo 1:
Lista arquivos modificados no último dia pelo usuário fulano
git log --since="1 day ago" --name-only --author=fulano --pretty=format: | sort | uniq
Exemplo 2:
Lista arquivos modificados no branch menu com relação ao branch master
git df master menu --name-only --pretty=format: | sort | uniq
Outra boa opção é o comando whatchanged