What I understand is that when make a push, my code in the remote repository gets updated. How does git actually keep track of the versions of the release (in context of git-flow). Does the remote repository also pull any metadata along with my code or does it only pull code ? I am relatively new to using git flow.
Asked
Active
Viewed 454 times
1 Answers
0
It updates remote tracking branches (branches in the remotes namespace).
Those have the last SHA1 fetched from the remote in them.
See "Git: What is a tracking branch?"
This isn't limited to "git-flow", it is a basic git mechanism.
-
Thanks, that clears up a lot of doubts. I think i get the gist of it. To keep up-to-date with changes in the remote repository, I use the git fetch origin command and this essentially updates my origin pointer and add my changes to any other changes in the remote repository. – aliasav Jun 12 '14 at 07:57
-
@user3646965 yes, the idea is to keep an updated history of the remote repo in your local repo, in order for you to be autonomous, and work locally. – VonC Jun 12 '14 at 08:12