* GIT & Symbolic Links [not found] <CACHQFzEqe-SwpCgjgGRDdzcUQW_+8-TdLsRV6KbKorvq7dJi+g@mail.gmail.com> @ 2012-03-12 16:44 ` Sassy Natan 2012-03-13 10:06 ` Kevin ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Sassy Natan @ 2012-03-12 16:44 UTC (permalink / raw) To: git Hi Group, I'm consider myself as a new baby when it come to GiT. But I have just migrate my users from SVN to GIT and I have some questions in mind I want to share with you. Is it possible to do the following: Say I have a really big GiT repo (something around 1GB) name DEV. In the SVN days, each of my developers (100 Users) had to clone a local copy of the DEV Repo in his home folder, so total of 100GB was used in my shared storage (NFS Drive) where something around 85% was actually just a copy of the same files. When I used the De-Duplication function (Under ZFS File System) I could easy see how the volume is shrinking, but I more inserting in different kind of solution, now when it comes to GIT. So for the example let's consider that user A clone the DEV GIT Repo into his/her home folder (/home/A/DEV) User B want to clone the same Repo. But now, I don't want user B to clone the all tree and files, but instead to have a symbolic links to the /home/A/DEV folder. All files and directories in the /home/B/DEV will be a links to the /home/A/DEV. Once user B actually want to change a file, ?somehow? the git brake the link, and have a local copy of that specific file. When the file is push back the link become back. While trying to get some feedback in the IRC roon, some users point me to git-annex and unionfs. Both project seems to be cool, git-annex really have nice options, but I don't see how this going to help me. Regarding unionfs - well I'm still not sure. Maybe someone can help here... Thanks ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GIT & Symbolic Links 2012-03-12 16:44 ` GIT & Symbolic Links Sassy Natan @ 2012-03-13 10:06 ` Kevin 2012-03-17 16:00 ` Enrico Weigelt 2012-03-17 17:05 ` Andrew Sayers 2 siblings, 0 replies; 4+ messages in thread From: Kevin @ 2012-03-13 10:06 UTC (permalink / raw) To: Sassy Natan; +Cc: git As the IRC channel already concluded, git itself has no option to 'break' symbolic links on write, as git is not the only one editing these files, but your editor does too. This is why this is never going to work without the support of your editor, or with something more low level, like file system support On Mon, Mar 12, 2012 at 5:44 PM, Sassy Natan <sassyn@gmail.com> wrote: > Hi Group, > > I'm consider myself as a new baby when it come to GiT. > But I have just migrate my users from SVN to GIT and I have some > questions in mind I want to share with you. > > Is it possible to do the following: > > Say I have a really big GiT repo (something around 1GB) name DEV. > In the SVN days, each of my developers (100 Users) had to clone a > local copy of the DEV Repo in his home folder, so total of 100GB was > used in my shared storage (NFS Drive) where something around 85% was > actually just a copy of the same files. > > When I used the De-Duplication function (Under ZFS File System) I > could easy see how the volume is shrinking, but I more inserting in > different kind of solution, now when it comes to GIT. > > So for the example let's consider that user A clone the DEV GIT Repo > into his/her home folder (/home/A/DEV) > User B want to clone the same Repo. But now, I don't want user B to > clone the all tree and files, but instead to have a symbolic links to > the /home/A/DEV folder. > All files and directories in the /home/B/DEV will be a links to the /home/A/DEV. > > Once user B actually want to change a file, ?somehow? the git brake > the link, and have a local copy of that specific file. > When the file is push back the link become back. > > While trying to get some feedback in the IRC roon, some users point me > to git-annex and unionfs. > Both project seems to be cool, git-annex really have nice options, but > I don't see how this going to help me. > > Regarding unionfs - well I'm still not sure. > > Maybe someone can help here... > > Thanks > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GIT & Symbolic Links 2012-03-12 16:44 ` GIT & Symbolic Links Sassy Natan 2012-03-13 10:06 ` Kevin @ 2012-03-17 16:00 ` Enrico Weigelt 2012-03-17 17:05 ` Andrew Sayers 2 siblings, 0 replies; 4+ messages in thread From: Enrico Weigelt @ 2012-03-17 16:00 UTC (permalink / raw) To: git * Sassy Natan <sassyn@gmail.com> wrote: Hi, > So for the example let's consider that user A clone the DEV GIT Repo > into his/her home folder (/home/A/DEV) > User B want to clone the same Repo. But now, I don't want user B to > clone the all tree and files, but instead to have a symbolic links to > the /home/A/DEV folder. > All files and directories in the /home/B/DEV will be a links to the /home/A/DEV. Symlinks wont fit here, as the userland sees them as links (and treats them as such). What you're looking for is some solution that does the cow stuff hidden from the normal userland. Perhaps via unionfs or something fuse-based. BUT: I'd first raise the question if your tree needs to be that big at all. Perhaps it should be splitted into several smaller ones. What actually does your tree make that big ? cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ---------------------------------------------------------------------- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: GIT & Symbolic Links 2012-03-12 16:44 ` GIT & Symbolic Links Sassy Natan 2012-03-13 10:06 ` Kevin 2012-03-17 16:00 ` Enrico Weigelt @ 2012-03-17 17:05 ` Andrew Sayers 2 siblings, 0 replies; 4+ messages in thread From: Andrew Sayers @ 2012-03-17 17:05 UTC (permalink / raw) To: Sassy Natan; +Cc: git Not really an answer to your question, but `git-relink` will de-duplicate the contents of your .git directory using hardlinks. Your actual files will remain as big as ever, but the (potentially much larger) git storage for older versions will take considerably less disk space. - Andrew ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-17 17:05 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <CACHQFzEqe-SwpCgjgGRDdzcUQW_+8-TdLsRV6KbKorvq7dJi+g@mail.gmail.com> 2012-03-12 16:44 ` GIT & Symbolic Links Sassy Natan 2012-03-13 10:06 ` Kevin 2012-03-17 16:00 ` Enrico Weigelt 2012-03-17 17:05 ` Andrew Sayers
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).