The following commands reveal what I just did:
Z:\www\gg\web\tests\sample-repo-cloned>git log --all --source --graph
* commit ce7ae79a2b993b780002dbc5eac650fa49427df0 refs/heads/qux
| Author: myname <myemail@gmail.com>
| Date: Sun Sep 25 00:24:42 2011 +0300
|
| qux another
|
* commit ef2ea79f40d8e77e47cba31954ef2093c534cc17 refs/heads/qux
| Author: myname <myemail@gmail.com>
| Date: Sun Sep 25 00:15:56 2011 +0300
|
| qux
|
Z:\www\gg\web\tests\sample-repo-cloned>git branch
* master
qux
Z:\www\gg\web\tests\sample-repo-cloned>git checkout qux
Switched to branch 'qux'
Z:\www\gg\web\tests\sample-repo-cloned>notepad2 qux.txt
Z:\www\gg\web\tests\sample-repo-cloned>git add qux.txt
Z:\www\gg\web\tests\sample-repo-cloned>git commit -m "qux more stuff"
[qux 1d18327] qux more
1 files changed, 2 insertions(+), 1 deletions(-)
Z:\www\gg\web\tests\sample-repo-cloned>git log --all --source --graph
* commit 1d183278e78b8896d882822dacb4aad5bb8cf1bd refs/heads/qux
| Author: myname <myemail@gmail.com>
| Date: Sun Sep 25 00:39:06 2011 +0300
|
| qux more
|
* commit ce7ae79a2b993b780002dbc5eac650fa49427df0 refs/remotes/origin/qux
| Author: myname <myemail@gmail.com>
| Date: Sun Sep 25 00:24:42 2011 +0300
|
| qux another
|
* commit ef2ea79f40d8e77e47cba31954ef2093c534cc17 refs/remotes/origin/qux
| Author: myname <myemail@gmail.com>
| Date: Sun Sep 25 00:15:56 2011 +0300
|
| qux
|
My question is this: why did the first two commits change their "source" from refs/heads/qux
to refs/remotes/origin/qux
? They did that after the third commit. I don't understand this. What's the logic behind that "source"? It seems to be changing randomly.