tj.git-extras/bin/git-local-commits

7 lines
106 B
Bash
Executable file

#!/bin/sh
ref=$(git symbolic-ref HEAD)
branch=${ref#refs/heads/}
git log origin/${branch}..${branch} $*