Skip to content

Instantly share code, notes, and snippets.

@simon-lang
Created June 26, 2024 03:48
Show Gist options
  • Save simon-lang/891229ebfdbef82238bba14e94fd5a9e to your computer and use it in GitHub Desktop.
Save simon-lang/891229ebfdbef82238bba14e94fd5a9e to your computer and use it in GitHub Desktop.
up() {
branch=$(git branch --no-color 2> /dev/null | egrep '^\* [^\(]' | cut -c3-);
git --no-pager log --oneline "$branch" "^origin/$branch"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment