On Thursday 08 September 2011, Juha Heinanen wrote:
a week ago i created a new head jh/mtree, which is supposed to track master:
git checkout --track -b mtree master git push origin mtree:jh/mtree
now when i browse that head on gitweb page, i don't see any changes done to master, such as the one i did today on lib/srdb1/schema/entities.xml.
what does "tracking master" mean? how can i see changes done on master on jh/mtree head?
It just means that master is the default upstream branch. So you don't have to enter any branch when pulling. When in you mtree branch, 'git pull' will pull changes from master.
From git-branch manpage:
-t, --track When creating a new branch, set up configuration to mark the start-point branch as "upstream" from the new branch. This configuration will tell git to show the relationship between the two branches in git status and git branch - v. Furthermore, it directs git pull without arguments to pull from the upstream when the new branch is checked out.
This behavior is the default when the start point is a remote-tracking branch. Set the branch.autosetupmerge configuration variable to false if you want git checkout and git branch to always behave as if --no-track were given. Set it to always if you want this behavior when the start-point is either a local or remote-tracking branch.