threads / discuss / 24381

Treat submodules as normal directories/files?

Subject: Treat submodules as normal directories/files?

## tl;dr

2 messages between Jul 13, 2010 and Jul 13, 2010.

replies: 1people: 2as markdown or json

wiekaltheut@gmx.de· Jul 13, 2010, 06:14 UTC · lore
Hi!

Is it possible to treat submodules as normal directories/files?

I'm using Git not just for source code, but also for documents and my "projects" directory (mainly an Eclipse Workspace) in my home directory. Though Git may not be designed for this, it is an easy way do create a backup and sync my home directory between my machines :-).

This works fine, except for Git repositories inside my home (projects) directory. Is there a way, to treat them like normal directories so I can add them via git add?

Thank you and thanks for Git, which is just great :-).
-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
Jonathan Nieder· Jul 13, 2010, 06:48 UTC · re: wiekaltheut@gmx.de · lore

Re: Treat submodules as normal directories/files?

Hi,
wiekaltheut@gmx.de wrote:
Show 9 quoted lines
> Is it possible to treat submodules as normal 
> directories/files?
> 
> I'm using Git not just for source code, but also for 
> documents and my "projects" directory (mainly an
> Eclipse Workspace) in my home directory. Though Git
> may not be designed for this, it is an easy way do
> create a backup and sync my home directory between
> my machines :-).

See [1] for a similar question. Though the answer in your case is likely to be completely different; I suspect you might find bup[2] interesting.

Hope that helps, Jonathan

[1] http://thread.gmane.org/gmane.comp.version-control.git/144847 [2] http://github.com/apenwarr/bup#readme

← back to recent threads