Yes. The "--track" option just adds some extra info in .git/config:
[branch "master"]
remote = origin
merge = refs/heads/master
This info is then used by "git-pull" to
1. fetch updates from the remote repository "origin"
2. merge those updates from refs/remotes/origin/master
Maybe ;-)
I just tried to avoid using the word "track" in more than one context,
since it seemed to be a main source of confusion.
Yes, this is the part that downloads objects from the remote
repository and updates refs/remotes/origin/master to refer to the same
commit as the master branch in the remote repository.
Yes, this updates your local 'master' with the commits downloaded by git-fetch
No. A remote repository: the name 'origin' can be used as an alias for
git://git.kernel.org/pub/scm/git/git.git
No. Fetch objects from the remote repository alias "origin"
And this is the info added by "git branch --track" which enables the
automatic merging of refs/remotes/origin/master (since
refs/remotes/origin/master is your local copy of refs/heads/master in
the 'origin' repository)
Talking to myself: obviously not
--
larsh
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html