Reputation: 611
I need a git command that let's me read all the commit messages from my remote repository.
I work on a local PC, push my code onto the repository from there, and then pull it onto my server.
I tried git log
, which shows all the commit messages on my local PC, but when used on the server it only shows me "Initial commit".
Is there a way to view all of them on the server?
Upvotes: 0
Views: 499
Reputation: 11026
I think you should do:
git fetch --all
git log origin/<branch-name>
Upvotes: 2