Skip to content

Instantly share code, notes, and snippets.

@washingtontimes
Created March 16, 2010 10:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save washingtontimes/333818 to your computer and use it in GitHub Desktop.
Save washingtontimes/333818 to your computer and use it in GitHub Desktop.
A git command that emulates svn status -u and shows what will be updated with the next pull.
#!/bin/bash
git fetch
git log --name-status ..origin/master | grep -P '[ACDMRTUXB]\t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment