1

Using git log --name-status gives all the commits on that branch.

Using git log -1 --name-status gives only the last commit.

I want to get the last commits that were in the last push. Even knowing how many commits there were in the last push would help me because I can parametrize the command with -n.

The answer at this question does not help me. Using git whatchanged does not help me too much either.

1 Answers1

3

Just add --remotes at the end of your command line, like:

 git log -1 --name-status --remotes
Paul-Marie
  • 874
  • 1
  • 6
  • 24