-----BEGIN PGP SIGNED MESSAGE-----
Il 23/12/2012 21:57, Francesco Rugiano ha scritto:
> I have a question and i didn't manage to get an answer.
> I am in this situation:
> Remote repository - hosted on bitbucket
> Local repository on PC1 - managed by Git 1.8.0 (on Windows 7)
> Local repository on PC2 - managed by Git 1.8.0 (on Windows 7)
> Now, in order to keep the local repositories small, i wanted to remove
> committs A, B and C. I wanted, however, to keep them on the remote
> repository, in order to be able to revert to them in the future.
Is really size a big problem?
You can try with git gc --aggressive.
You can also try with git clone --depth=1 <remote-repository>, but read
the manual page carefully.
If you want full history again, you can just
git clone <remore-repository>.
However I would *never* keep my only full history repository on an
I had to do this with subversion, in the past...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----