git difference between a branch and current branch


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. branch=$( git branch 2>/dev/null|grep -e ^* | tr -d \*\ )
  2. git log --oneline remotes/origin/master "^${branch}"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.