Re: 500Mb file erroneously commited

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Axel Freyn <axel-freyn@xxxxxx> writes:

>  - if you have already other commit's on top of it, you can use e.g.
>    "git rebase" in order to redefine the history... something like (I'm
>    not sure it works exactly like that, but in principle)
>    git checkout -b tmp <WRONG_COMMIT>
>    git rm bigfile
>    git commit --amend
>    git checkout master
>    git rebase tmpfix
>    git branch -d tmpfix

That should work, but "git rebase -i" will make it much simpler (just
"edit" or even delete the guilty commit).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]