say I clone
a git repo locally... time goes by and I want to see if anything has changed back at the origin... but i don't, necessarily, want to fetch
or pull
...yet.
what's the command for seeing a list of commits SINCE i last pulled...or just the fact that there HAVE be开发者_如何学运维en some commits since I last pulled?
i don't want overhead of diff
in this case...
git remote show origin
Try:
git fetch --dry-run
You need to at least fetch, without that the repo will have no information about the remote repository. git diff --summary
will then show you a short summary of the changes.
get all of the commits into local tracking branch:
git fetch
list all of the changes between tracking branch and HEAD:
git log origin/master HEAD
精彩评论