Skip to content

Instantly share code, notes, and snippets.

@rob-b
Created November 1, 2012 10:22
Show Gist options
  • Save rob-b/3992928 to your computer and use it in GitHub Desktop.
Save rob-b/3992928 to your computer and use it in GitHub Desktop.
git-vary
> cat ~/.bin/git-vary
#!/bin/sh
(
set -e
target=$1
git log --oneline --graph --decorate $(git merge-base $target HEAD)^.. $target HEAD
)
> git checkout some_branch && git vary master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment