git如何跟踪远程仓库中的版本? [英] How does git keep track of versions in the remote repository?
问题描述
我的理解是,在推送时,远程存储库中的代码会更新。 git如何实际跟踪版本的发行版(在git-flow环境中)。
远程存储库是否也会将任何元数据与我的代码一起提取,还是只能提取代码?
我使用git flow比较新。
它更新远程跟踪分支(远程命名空间中的分支) 。
其中有最后一个从远程获取的SHA1。
请参阅,它是一个基本的git机制。
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.
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.
这篇关于git如何跟踪远程仓库中的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!