-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Il 23/12/2012 21:57, Francesco Rugiano ha scritto: > Hello > 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 external hosting. I had to do this with subversion, in the past... > [...] Regards Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlDYbz8ACgkQscQJ24LbaURx9ACePrjxqCDh2EzyOe5rpp9GWYxA lKEAnjo/SBVFGYvRx0imY7Md8wN2K5BU =CkwR -----END PGP SIGNATURE----- --