[git-users] examples of `git filter-branch --index-filter`

2010-10-01 Thread Ted
Hello good fellows, I've looked to no avail for some examples of the `--index-filter` action for `filter-branch`. It's clear from the manpage how to use it to remove files, and I gather that something like `git ls-files | grep ...` can be used to build a list of files to be removed. But it's n

[git-users] Re: Pushing only a single file

2010-10-01 Thread Konstantin Khomoutov
On Oct 1, 5:57 pm, David Doria wrote: > I cloned a repository, created an Experimental branch, then worked on > two files: > > 1) edit a.h > 2) edit b.h > 3) git add . > 4) git commit -m "worked on a and b" > > Now I have decided that a.h is ready to push into the main repository, > but b.h is no

[git-users] Pushing only a single file

2010-10-01 Thread David Doria
I cloned a repository, created an Experimental branch, then worked on two files: 1) edit a.h 2) edit b.h 3) git add . 4) git commit -m "worked on a and b" Now I have decided that a.h is ready to push into the main repository, but b.h is not. Is there a way to push only a.h even though the work on