Git is ignoring .git directories in subdirectories

Posted by Danny on Stack Overflow See other posts from Stack Overflow or by Danny
Published on 2010-04-24T05:04:33Z Indexed on 2010/04/24 5:13 UTC
Read the original article Hit count: 272

Filed under:
|

I'm using git as a backup tool and 'roaming profile' for my $HOME directory between laptop and desktop.

My problem is that under my $HOME I have a Development directory with multiple git projects I'm working on. Git will not allow me to add the subdirectories .git folders. So to commit to these projects I have to push the changes into my $HOME git repo, pull on laptop (where they were created and .git dir exsits) and commit.

I've read about submodules, but it's not really what I want. I just want the children .git folders to be treated like any old directory so I can move them around and back them up.

Has anyone done this or have an idea how I would?

© Stack Overflow or respective owner

Related posts about git

Related posts about backups