Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git command to see if repository has changed (no diff)

Tags:

git

github

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 been some commits since I last pulled?

i don't want overhead of diff in this case...

like image 239
Meltemi Avatar asked Mar 16 '26 10:03

Meltemi


2 Answers

git remote show origin

like image 153
Adam Dymitruk Avatar answered Mar 19 '26 10:03

Adam Dymitruk


Try:

git fetch --dry-run
like image 22
Clueless Avatar answered Mar 19 '26 10:03

Clueless