Show a list of commits unique to a git branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
if [[ -z "$2" ]]; then | |
echo 'Shows commits exclusive to a branch (from master)' | |
echo 'sha_diff [new_branch] [old_branch] (ex: sha_diff tp1234_dep_int master)' | |
else | |
git fetch && git log $1 ^origin/$2 --no-merges --oneline | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment