Question: Question:
If you commit a lot over the years with git, I think you'll get a lot of commits.
Can old data be lost automatically? (For example, like an Apple time capsule.)
Answer: Answer:
I don't think there is a version control system that automatically loses history commits, not just git.
With git, existing tags and historical commits for branches aren't deleted over time.
Existing tags and commits that cannot be reached from the branch are garbage collected and deleted when the git command is used after a certain period of time (for example, 45 days).
As long as you use it normally, you don't need to be aware of this automatic deletion mechanism.
If you want to know more, check out git gc
and git reflog
.