It is already common knowledge that it is not a good practice directly copy the physical files (mdf, etc) from the database of data. For this, there are specific routines that generate external files that can be imported.
Analogously to databases, I do not think it is either correct to copy a .git
directory, or even the entire directory of the project, for backup, or to carry on a thumb drive and download it at home.
So, what is the correct way to copy a repository git
?
It is important to assume here that it is a local repository, not hosted remotely in services like GitHub.