-1

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.

aliasav
  • 3,048
  • 4
  • 25
  • 30
  • Git doesn't copy every file each time you push. It checks how the modifications you have made to existing files and stores that data. https://www.atlassian.com/git/workflows – ben_joseph Jun 12 '14 at 07:38

1 Answers1

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?"

https://i.stack.imgur.com/Yrbpy.png

This isn't limited to "git-flow", it is a basic git mechanism.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 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