Am 22.04.25 um 09:19 schrieb Akash S: > ii) There is only 1 branch master in both repos and the last commit > id of both master branches are matching (read an article that data > integrity can be checked like this also since git also works like > Blockchain) > > iii) git fsck --full in both repos, both gave the same output: > > Checking object directories: 100% (256/256), done. > Checking objects: 100% (10793794/10793794), done. > Checking connectivity: 10793794, done. The facts that no errors were reported and that the commit ids are identical are sufficient evidence that both repositories are identical. > But original repo on disk had this extra line in the end (which the > remote bare on disk did not display) > > Verifying commits in commit graph: 100% (1351940/1351940), done. A commit graph is an optional data structure. Its absence doesn't invalidate the repository. > Why is there a change in size? Also how do I validate if two repos > are the same or not? Most likely, the two repositories have been packed in different manners. This has no bearing on the validity of the repository at all as long as `git fsck --full` reports no error. The different sizes should not worry you. -- Hannes