Check commits done by others on git

My teammate has pushed some code changes on the git repo but when I use the command git log, I cannot see his commit in the commit history. I can view it only when I pull the code. Is there a way to see all the commits made by everyone without pulling the code using git pull.

  • ssh key stops functioning after a while
  • Git: Reset forked repo to current copy of upstream repo
  • Netbeans 7 vs Eclipse 3.6 for Java, git and vim
  • How do I check the date and time of the latest `git pull` that was executed?
  • Git: Stage into Commit, what is the right workflow?
  • Build up Git repo from several directories (snapshots)
  • What is the difference between git rm --cached and git reset <file>?
  • Git - Using an alias instead of full repository path
  • Cannot clone private bitbucket repo through ansible
  • gcloud init fails for invalid username/password
  • How is dvcs (git/mercurial) branching and merging support better than svn's?
  • Git: text=auto and “warning: LF will be replaced by CRLF”
  • 3 Solutions collect form web for “Check commits done by others on git”

    The original poster asks:

    Is there a way to see all the commits made by everyone without pulling the code using git pull.

    The answer is no. In order to see a log of the newest changes on the remote repository, you must fetch or pull those changes first:

    git fetch origin
    git log origin/master
    

    Or

    git checkout master
    git pull origin master
    git log origin/master
    

    You need to check the log on the remote repository instead of your local using git log remote remotename/branchname. For example:

    git log remote origin/master
    

    To see what commits have been added to the upstream , you can run a git log using branch with the following commands:

    git log origin/<branch>
    

    More info: https://www.atlassian.com/git/tutorial/remote-repositories#!fetch

    Git Baby is a git and github fan, let's start git clone.