Skip to content

Instantly share code, notes, and snippets.

@todb-r7
Created March 2, 2012 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todb-r7/1960526 to your computer and use it in GitHub Desktop.
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
[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`"
@todb-r7
Copy link
Author

todb-r7 commented Mar 2, 2012

edited out some copy-paste detris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment