I want to view git commits when my branch is ahead of origin branch.
i tried git log
it returns all commits. but, i want to view only ahead commits
from branch to origin/branch
here what i mean,
On branch permissions Your branch is ahead of 'upstream/permissions' by 2 commits. (use "git push" to publish your local commits) nothing to commit, working directory clean
in this case i want to view 2 commits