On Wed, 11 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote:
On Wed, 11 Aug 2021 23:55:57 +0200, Bo Berglund via fpc-pascal
<fpc-pascal@lists.freepascal.org> declaimed
the following:
How big a size is the git clone going to pull?
By the looks of it I get the impression that the git clone will download every
single tag/branch/commit etc ever done and then the git checkout activates the
actual tagged file set?
If this is correct then the size on disk will be too big.
GIT and Mercurial are both "distributed" version control systems. That
means that both rely upon creating a local repository from which one
performs check-out/check-in operations, and periodically "pushes" the
changes to the remote server repository.
As I understand https://git-scm.com/docs/git-clone you get the
"history" of branches/et al, but only get the most recent source for
controlled files:
"""
Clones a repository into a newly created directory, creates remote-tracking
branches for each branch in the cloned repository (visible using git branch
--remotes), and creates and checks out an initial branch that is forked
from the cloned repository’s currently active branch.
"""
But yes, you will have two copies of files if you check-out everything:
the local repository, and the working file fetched from said repository.
The same was true for SVN, you always have the original and current version
of every file.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal