My previous post explains how to show which commits Git will push or merge. This is a follow-up explaining how to achieve the same with Git-SVN.
These are the aliases you need in your Git configuration file (e.g. C:cygwinhome<user>.gitconfig or <project>/.git/config). The explanation is below.
[alias] # -M Detect and report renames for each commit. # --name-status Show only names and status of changed files. # --abbrev-commit Instead of showing the full 40-byte hexadecimal commit object name, show only a partial prefix. l = log -M --name-status --abbrev-commit # --oneline This is a shorthand for &quot;--pretty=oneline --abbrev-commit&quot; used together. l1 = log --oneline # log commits-to-push lctp = &quot;!REMOTE_BRANCH=$(git svn info --url | gawk -F'/' '{print $NF}'); COMMAND=&quot;git l remotes/$REMOTE_BRANCH..HEAD&quot;; echo $COMMAND; $COMMAND&quot; lctp1 = &quot;!REMOTE_BRANCH=$(git svn info --url | gawk -F'/' '{print $NF}'); COMMAND=&quot;git l1 remotes/$REMOTE_BRANCH..HEAD&quot;; echo $COMMAND; $COMMAND&quot; # log commits-to-merge # do not forget to execute &quot;git svn fetch&quot; first lctm = &quot;!REMOTE_BRANCH=$(git svn info --url | gawk -F'/' '{print $NF}'); COMMAND=&quot;git l HEAD..remotes/$REMOTE_BRANCH&quot;; echo $COMMAND; $COMMAND&quot; lctm1 = &quot;!REMOTE_BRANCH=$(git svn info --url | gawk -F'/' '{print $NF}'); COMMAND=&quot;git l1 HEAD..remotes/$REMOTE_BRANCH&quot;; echo $COMMAND; $COMMAND&quot;