What command do I have to use for the initial clone?
git clone --bare git@example.com:bla.git
or
git clone git@example.com:bla.git
?
The reason I am asking is that after some time, the clone gets really large (6.3 GB compared to about 600 MB for a freshly cloned bare repository), and git status
- takes a long time
- shows a lot of modified files
Is that expected? Do I have to work with bare repositories? Do I have to do a clean checkout from time to time? Do I have to clone with branches?