Skip to content

Instantly share code, notes, and snippets.

@jampow
Last active December 14, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jampow/5030712 to your computer and use it in GitHub Desktop.
Save jampow/5030712 to your computer and use it in GitHub Desktop.
.gitconfig color and aliases
[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
@jampow
Copy link
Author

jampow commented Aug 29, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment