Monolithic git repo, archiving code, is this a bad idea?
I'm pretty new to using Git specifically.
I also understand what some of the consequences are based on what I found searching the internet. But I haven't found any material that covers a scenario/concerns I have. And before you answer this question let me explain why I'm doing it and tell me if it's still a terrible idea or if it's OK.
Also, I have separate Git repo's for actual current/active/live projects I'm working on. So I am doing Git correctly for things that need it done right. We can collectively exhale a sigh of relief, I'm not 100% crazy.
Back to it then. I don't have separate Git repos for this particular basket of hundreds of loose scripts/projects I've never had source controlled or managed in any way. Maybe ~600 files. This is stuff that goes back years of me just doing random things or retired projects from a bygone era. This is a bucket of code snippets, single file scripts, small static web files, things I'll never work on again. If you told me I should do separate Git repos/orphan branches/etc for all of it I would probably be breaking it out until the day I died. Or abandon Git entirely for this purpose, which would be sad. That purpose really being "code archival" really. I simply wanted these files in my Git repo so I could browse/see/search through it occasionally to look or reference old things I did.
From a Git functionality perspective, is there anything in the long term that will break, corrupt, spiral into chaos if I keep all of those artifacts in a single repo? If I ever happen to edit a file or two in this monolithic repo does Git blow up with metadata? or any hidden and subtle issues like that which will one day bite me?
Or are the issues with a monolithic repo just higher level abstract problems related to single projects that I don't have to worry about for purposes like archiving code and an occasional edit?
edit; just grammar.
Posted Apr 6, 2022, 1:47 PM UTC · edited