github - About GIT: Do all files in a certain git project warehouse have to be available locally?
PHPz
PHPz 2017-05-17 10:01:19
0
3
1218

Question description:
This is a very silly and naive question, please give me some pointers from patient answerers. It suddenly occurred to me today that every time I perform project management, all the files in the remote warehouse will be cloned locally. Then a question arises: Do all the folders in the remote warehouse have to be available locally? It’s not easy to understand, picture above.
This is the remote warehouse:

This is a local file:

Question supplement: How can I keep only the latest version locally?
(Digression: This question should have no practical significance. From a practical point of view, local and remote warehouses have a one-to-one correspondence. Is this the difference between svn and git? They are centralized management and distributed the difference?)

PHPz
PHPz

学习是最好的投资!

reply all(3)
伊谢尔伦

This incremental storage method is equivalent to manual backup. It is not the difference between git and svn, nor the difference between centralization and distribution, because no matter it is git or svn, under normal circumstances, it is necessary to add and delete, and synchronize once ( git needs to be tagged, which is equivalent to the folder name in your screenshot; svn (not familiar with svn) is a version, but your screenshot should be a manual incremental backup, which may be closer to using a network disk or using a copy method for backup operations. mode, unlike general version management operations.

Ty80

There is a scenario where you have changed a lot of things and gone through many versions. At this time, you want to go back to the previous version and give it a try. At this time, the advantages of git are revealed. You can return your current warehouse to the corresponding version without being connected to the Internet. It's because these version diff files are also available locally, and this is because of the advantages of git's distributed management. However, if you don't encounter this special situation, it seems that the difference between git and svn is not very big.

Ty80

http://stackoverflow.com/ques... How do I clone a subdirectory only of a Git repository? - Stack Overflow

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template