After I played with the remote, I ended up doubled all my commits. For example. instead
C3107
..
C3
C2
C1
I got
C3107
C3107
..
C3
C3
C2
C2
C1
C1
where double commits have the same name but different hashes. The problem is that I noticed this too late, and I did not add a good bunch of commits on top of it.
Is there a way to remove duplicate commits and not lose the ones I added?
PS: If this helps, I have a copy of the repository before my experiments with the remote.
Thank you very much in advance.
. , : repo R1, R2. , R1, R2 , github. , git filter-branch --index-filter 'git rm --cached --ignore-unmatch filename', git , . R2, , R1, . R1.