show commits since branch creation

后端 未结 7 871
伪装坚强ぢ
伪装坚强ぢ 2020-12-12 17:44

Is there a way to see with git log or some other command only the commits that were added after branch creation?

usage: git log [         


        
7条回答
  •  攒了一身酷
    2020-12-12 18:19

    I could be wrong but I don't think any of the answers are exactly was being asked for in the OP so I wanted to add a new answer. I believe that this is the exact same question I had since in other source control systems this is very easy to do.

    I have the following in MASTER:

    'develop' | --> 'GP603'

    In ORIGIN (my local system) I have:

    'GP603' [CLONED from the remote/GP603 branch]

    I then performed 2 different commits. First commit change File X. Second commit change File X and File Y. Some day later I wanted to just validate my assumption of the state of the local branch ORIGIN/GP603. This is what I did to validate that there were only he 2 commits I remembers doing (which in reality were the only 2 commits on the branch)

    $ git log origin/GP.603...

    (Commit 2) commit b0ed4b95a14bb1c4438c8b48a31db7a0e9f5c940 (HEAD -> GP.603) Author: xxxxxxx Date: Wed xxxxx -0400

    1. Fixed defect where the format of the file names and paths were being added to HashTable in such a way that they would never be matched in any comparison.  This was an
    defect causing older failed files to never be moved to the correct directory (WindowsServiceApplication.cs)
    
    2. Removing worthless and contextless message as it does nothing but clog the log with garbage making it harder to read (DinoutFileHandler.cs)
    

    (Commit 1) commit 2c4541ca73eacd4b2e20d89f018d2e3f70332e7e Author: xxxxxxx Date: Tue Oct xxxxx -0400

    In ProcessFile() function need to perform a .ToLower() on the file path string when adding it o the failedFiles collection.
    

提交回复
热议问题