Skip to content

Instantly share code, notes, and snippets.

@sumardi
Last active December 10, 2015 13:38
Show Gist options
  • Select an option

  • Save sumardi/4441823 to your computer and use it in GitHub Desktop.

Select an option

Save sumardi/4441823 to your computer and use it in GitHub Desktop.
git alias
[alias]
ignored = !git ls-files -v | grep ^[a-z]
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
alias = "!git config -l|awk -F= '/^alias/ { sub(\"^alias\\.\", \"\", $1); print $1 \"\t\" $2 }'"
update_sub = 'git pull --recurse-submodules && git submodule update'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment