简体   繁体   中英

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?

Use git status like without git svn .

You just have to set the svn-remote-tracking-branch as upstream branch and git status will give you the same information as for non git svn repo where it also just shows the difference against the configured upstream branch if one is configured.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM