How to see what has been checked into git, but hasn't been committed to svn via dcommit?

后端 未结 4 392
孤街浪徒
孤街浪徒 2020-12-31 08:42

I\'m using git-svn. How can I get a list of what I\'ve committed into git, but haven\'t yet committed to the SVN repository since the last git svn dcommit? That

4条回答
  •  天涯浪人
    2020-12-31 09:01

    I use git log --oneline --graph:

    * aaaaaaa commit message
    *   bbbbbbb commit message 
    |\  
    | * ccccccc commit message
    | * ffffdffffdd commit message
    | * eeeeeee commit message
    |/  
    *   fffffff commit message 
    |\  
    ...

    It's easy to see that commits aaaaaaa, bbbbbbb, and fffffff are on the current (master) branch. These commits either have already been or will be committed to Subversion the next time you execute git svn dcommit. (Commits ccccccc, ffffdffffdd, eeeeeee are on a separate branch which was merged into master and will not be committed to Subversion as separate commits.)

提交回复
热议问题