Posted By

arunpjohny on 10/11/10



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


git difference between a branch and current branch

 / Published in: Bash

This will display the commit difference between the origin/master branch and the current working branch

  1. branch=$( git branch 2>/dev/null|grep -e ^* | tr -d \*\ )
  2. git log --oneline remotes/origin/master "^${branch}"

Report this snippet  

You need to login to post a comment.