Skip to content

Instantly share code, notes, and snippets.

@simon-lang
Created June 26, 2024 03:48

Revisions

  1. simon-lang created this gist Jun 26, 2024.
    4 changes: 4 additions & 0 deletions up.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    up() {
    branch=$(git branch --no-color 2> /dev/null | egrep '^\* [^\(]' | cut -c3-);
    git --no-pager log --oneline "$branch" "^origin/$branch"
    }