damico
damico

Reputation: 215

git log does not show all commits

I have been learning a lot about the git log lately and would like to write it to a file so I can process it and write a changelog/release notes from it. However, when I write the git log between two commits or two tags I lose a lot of the commits in between. I'm not sure why this is. I checked the GitHub network graph and checked the commit history on GitHub manually and the commits that I lose are commits belonging to the branch, so I am thinking that my commands are wrong or incomplete.

Here is what I have done and tried

a384d44ff80de33aebd9057f3c99e822440fa545 Adjusted dev version (#13)  
6ddf190dd11bcc71552b482b4751acc7c98a74d2 (tag: 0.0.1) 0.0.1              
f7fb130f7b3f48d5fc0b2edde2bb888a891c76a6 Back to 0.1.1                
881e70c8df9a3df6ec8ee8cba13b39165e9db179 Update DESCRIPTION version  
d3dc1169705c5f48748bcd72d07ebd2bf5eff59f Update DESCRIPTION version  
b766875b4fcaa978f6ec85129a2542ed5dd44762 Update description file version number to match version tag  
ed04156444914785b002b5c94b501ed54b5b99a4 (origin/vd-networkPl) Debugging to fix issue with igraph graph_from_data_frame()                                                          
dd96aca4db22d5b9921726795642a2358248526d Write network plot vignettes  
64d216700a9df8393eeab0b2c6967554da18a092 Update codex to work with network plot  

Sorry I didn't add a reproducible example. All my repositories are private (company regulations) so I wasn't sure how to create a reproducible example.

Upvotes: 8

Views: 16725

Answers (2)

Enlem Enlem
Enlem Enlem

Reputation: 117

you enter git log --all in your command-line interface and hit enter, you'll see a list of commits from all branches in reverse chronological order, just like with the git log command.

Upvotes: -1

Dev Matee
Dev Matee

Reputation: 5947

Try --all option

git log --all

Upvotes: 12

Related Questions