alex
alex

Reputation: 611

Git: Read all Commit Messages from Remote Repository

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

Answers (1)

Antonio Petricca
Antonio Petricca

Reputation: 11026

I think you should do:

git fetch --all
git log origin/<branch-name>

Upvotes: 2

Related Questions