tags:

views:

165

answers:

2

Hi,

I have project with many branches. I would like to work on these simultaneously without switching back and forth with git checkout. Is there any way I can do that besides copying whole repository somewhere else?

Thanks.

+5  A: 

Not really as Git only supports to have one working copy of the repository data within the repository directory.

If you want to commit/pull to the same repository with two different working copies, you could create a bare repository and clone it to two working copies.

Whenever you have finished something, you simply push to the "main" bare repository.

Some hints:

man git-clone

git clone --bare

BastiBense
+5  A: 

Take a look at $GIT_SRC_DIR/contrib/workdir/git-new-workdir.

Stefan Näwe
And the similar: http://stackoverflow.com/questions/655202/git-and-c-workflow-how-to-handle-object-and-archive-files/1889179#1889179
Tobu
@Stefan, This is the coolest thing since slided bread.
Wayne Conrad