Skip to content

Instantly share code, notes, and snippets.

@richellyitalo
Last active November 13, 2019 13:52
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 richellyitalo/89632a75961ec3a51c041b9e70e2be74 to your computer and use it in GitHub Desktop.
Save richellyitalo/89632a75961ec3a51c041b9e70e2be74 to your computer and use it in GitHub Desktop.

Criação de alias

git config --global alias.assume-unchanged 'update-index --assume-unchanged'

Adicionar ou remover arquivos à área de mudanças do projeto

Pode ser utilizado "pasta/*" para todos os arquivos da pasta

adiciona = git update-index --assume-unchanged <file>
remove = git update-index --no-assume-unchanged <file>

Listar arquivo no 'assume-unchanged'

git ls-files -v|grep '^h'

Excluir branches locais que não existem remoto

git remote prune origin
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d

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