tags:

views:

49

answers:

1

I have this "--bare" project on my server named "WebsiteCore" and every git commit is a feature.

I wish to create a new project with some commits from "WebsiteCore" (I just want some features). I would also like to make an other "--bare" project on my server to work on the new project remotely.

I'm not really experienced with git and I don't know if this is possible.

Thanks for your time.

A: 

This could be a use case for git rebase --interactive, since it would allow you replay those commits while removing the one you do not want

It also allows you to split a commit which contain some parts relevant to another you want to keep, while removing the rest: not all commits (here "features") you want to keep are fully independent one from another. Some can be build on top of other commits.

So make a branch prior to those commits, replay the "features" branch on top of your branch with a 'git rebase --interactive' and 'clone --bare' your repo into a new one on your server.

VonC
thanks, I'm trying it right now.
Patrick Marechal