Context: I am making a tool to analyze differences between 2 branches. I would like to watch the history of commits on origin/develop and origin/release. As I need the history only, I cloned the project with only the history (git clone --bare)
After a git fetch, I would like to see the latest commits on release and develop without having to git merge origin/develop|release on each branch. So I tried to just git log origin/develop [... format options].
On some projects, it works as expected. But on a particular project, I get this error :
$ git log origin/develop master * ] 11:01
fatal: ambiguous argument 'origin/develop': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
If I try git remote -v, I can see that origin is correctly defined. How could origin/develop not be a valid revision?