Search code examples
gitsvngit-svn

Is my "git svn" repository ahead of subversion repository?


For normal git process, I can use 'git status' to get a similar message like:

$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

Is there any git svn command could let me know what's require to dcommit?


Solution

  • git branch -a shows like

    * master
      my_branch
      remote/git-svn
    

    git log git-svn.. show the commit log ahead of last svn check in log.

    To get the count of commits which ahead of svn, just reference this blog

    git log --oneline git-svn.. 2> /dev/null | wc -l