Skip to content

Instantly share code, notes, and snippets.

@bronzehedwick
Created October 31, 2012 02:57
Show Gist options
  • Save bronzehedwick/3984550 to your computer and use it in GitHub Desktop.
Save bronzehedwick/3984550 to your computer and use it in GitHub Desktop.
Edit gitignore alias
# Simple shortcut to edit your gitignore
# from anywhere inside your git repository
# Note that this will only work for gitignores
# in the top level directory
# To use, copy and paste the code
# into your bashrc or zshrc
alias egi="vim $(git rev-parse --show-toplevel)/.gitignore"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment