Running git diff origin/integration...origin/dev-userX -- path/to/file.cpp
produces, in part:
--- a/path/to/file.cpp
+++ b/path/to/file.cpp
@@ -3,14 +3,12 @@
#include "foo.h"
#include "bar.h"
+#include <io.h>
But if I look directly in the pushed branches on github.com both files contain #include <io.h>
Questions:
- Why am I seeing this?
- Does the 'origin' syntax always mean look at the remote branch, NOT the local one?
- Will the 'origin' syntax work even if neither has ever been pulled / fetched or brought locally by any means?
Thanks