Created
March 2, 2012 19:14
-
-
Save todb-r7/1960526 to your computer and use it in GitHub Desktop.
Running arbitrary commands in git aliases to list names of changed files on a pull -r
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
thisbranch = !"git branch --no-color | sed -e '/^[^*]/d' -e 's/* //' " | |
pull-names = !"git fetch && \ | |
echo 'Checking for diffs...' && \ | |
git diff --name-only origin/`git thisbranch` && \ | |
git pull -r origin `git thisbranch`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
edited out some copy-paste detris