On Sun, 10 Jan 2010, Leo Razoumov wrote: > Hi List, > I am trying to find a way to check availability of new commits > *before* doing fetch or pull. Unfortunately, neither fetch nor pull > take "--dry-run" option (unlike push) But... _Why_ do you want/need to do that? You could use ls-remote to see what the remote branch is pointing to, e.g.: git ls-remote origin master and compare with the local view of that remote branch: git show-ref origin/master And if both SHA1 strings match then there is nothing new to fetch. > I am sure I am not the only one with such an itch. Maybe you are. There is very little point knowing that the remote repo has new commits if you're not going to fetch them, so I don't understand why you need this. Nicolas -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html