How to see change on remote repo, which not in local repo?

Viewed 39

I'm executing a command 'git push' and get error. My remote repository is ahead of the local one. I want to find out what changes have occurred on the remote repository.

1 Answers

Assuming you don't want to pull those changes yet, you can accomplish this with git log. First run git fetch to update your local refs. Then you'll want to run git log my-branch..origin/my-branch. This will show you commits on origin/my-branch (i.e. remote), which do not exist in your local repository.

Related