kieranpotts / dotfiles

My UNIX dotfiles.
MIT License
1 stars 0 forks source link

Show new git commits since last pull #211

Open kieranpotts opened 1 year ago

kieranpotts commented 1 year ago

To see what new commits have been created by the last command (typically after a "git pull") :

[alias]
        new = !sh -c 'git log $1@{1}..$1@{0} "$@"'

Source: https://git.wiki.kernel.org/index.php/Aliases

Usage:

git pull
git new
git new origin/master