Archive

Archive for the ‘git’ Category

git check for changes on remote repository

June 30, 2011 Leave a comment
git fetch # get latest code from upstream
git diff --quiet master..origin/master -- foo/ || echo 'directory differ'
Advertisements
Categories: git