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)
(oldest) A->B->C->D->E (newest)
I can, from both PCs, committ and/or revert to previous versions of the
code. For instance, i can committ something on PC2 (committ F), sync both
the pcs and the remote repo (so they all have the F committ) and then, from
PC1, revert to committ E. I learnt how to do that.
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.
I mean having a situation like this:
Remote repository - committs A->B->C->D->E
Local repository on PC1 - committs D->E
Local repository on PC2 - committs D->E
Then, if PC2 committs something (after all the syncs):
Remote repository - committs A->B->C->D->E->F
Local repository on PC1 - committs D->E->F
Local repository on PC2 - committs D->E->F
Can i do this? if yes, how? if not, what are the alternatives?