Re: [arch-general] git software: howto remove files from history and its objects

2012-03-12 Thread Techlive Zheng
2012/3/12 Cédric Girard : > On Mon, Mar 12, 2012 at 1:17 PM, F. Gr. wrote: > >> Now I want to remove some files from history and >> the objects in my repository. Are these the right commands? >> >> git filter-branch -d /dir1/subdir/ --index-filter 'git rm --cached -f >> --ignore-unmatch' -- --all

Re: [arch-general] git software: howto remove files from history and its objects

2012-03-12 Thread Cédric Girard
On Mon, Mar 12, 2012 at 1:17 PM, F. Gr. wrote: > Now I want to remove some files from history and > the objects in my repository. Are these the right commands? > > git filter-branch -d /dir1/subdir/ --index-filter 'git rm --cached -f > --ignore-unmatch' -- --all > rm -rf /git_repo/.git/refs/remot

Re: [arch-general] git software: howto remove files from history and its objects

2012-03-12 Thread Paul Gideon Dann
On Monday 12 Mar 2012 13:17:11 F. Gr. wrote: > Hi, > I'm a new user of git software. I imported a mercurial repository to > a git repository. Now I want to remove some files from history and > the objects in my repository. Are these the right commands? > > git filter-branch -d /dir1/subdir/ --inde