Skip to content

Commit

Permalink
.gitconfig: Simplify git p alias
Browse files Browse the repository at this point in the history
This uses git pull’s --recurse-submodules argument to avoid the compount command of the previous version of this alias.

Closes #868.
  • Loading branch information
jeffbyrnes authored and mathiasbynens committed Aug 23, 2019
1 parent 1bed7aa commit b5cbad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitconfig
Expand Up @@ -13,7 +13,7 @@
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"

# Pull in remote changes for the current repository and all its submodules
p = !"git pull; git submodule foreach git pull origin master"
p = git pull --recurse-submodules

# Clone a repository including all submodules
c = clone --recursive
Expand Down

0 comments on commit b5cbad4

Please sign in to comment.