Command (or script) similar to git status to show all local commits since last git svn dcommit?

前端 未结 5 1388
梦如初夏
梦如初夏 2021-01-13 14:14

This python script is the best I have come up with so far. I just hacked it together and on a cursory first couple uses, seems to be acting correctly, but I can\'t help but

5条回答
  •  青春惊慌失措
    2021-01-13 14:44

    First, do a git branch -a to list all the remote branches:

    $ git branch -a
      git-svn
    

    For me, only the git-svn branch is listed, but you may have different names depending on what options you passed to git svn clone. Then, use

    git log git-svn..
    

    (substituting your appropriate name for git-svn). The above command (note the two trailing dots ..) shows all the commits on the current branch since the nearest common ancestor of the current branch and the git-svn branch.

提交回复
热议问题