Skip to content

Commit

Permalink
git: more aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
dm3 committed Sep 22, 2016
1 parent c4fbee9 commit bdad328
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitconfig
Expand Up @@ -42,6 +42,8 @@
# Grep from repository root
gra = "!f() { A=$(pwd) && TOPLEVEL=$(git rev-parse --show-toplevel) && cd $TOPLEVEL && git grep --full-name -In $1 | xargs -I{} echo $TOPLEVEL/{} && cd $A; }; f"

pullall = "!f(){ git pull $@ && git submodule update --init --recursive; }; f"

addregex = !"$MY_SCRIPTS"/git/git_add_regex.sh

out = log --oneline --decorate origin/master..HEAD
Expand Down

0 comments on commit bdad328

Please sign in to comment.