C
C#7mo ago
Hillgrove

Git and Google Drive

new git user.. it seems to have your local repositories in a google drive controlled file structure can fuck stuff up. I'm quite OCD/anal about my folder structure, so before I have to find a new place for my local repositories to live, I'd like to hear if there are any other solutions?
15 Replies
x0rld
x0rld7mo ago
use github it's made to host git
Angius
Angius7mo ago
Don't use cloud drives like Google Drive, OneDrive, Mega, Dropbox, etc. to store your code Like xtreit says, use Github
Hillgrove
Hillgrove7mo ago
github was always the place I wanted to have main. This was only for local repositories when working with the code before pushing to github.
Anchy
Anchy7mo ago
your local storage is a good solution also using a remote dev/feature branch is another solution if you're worried about losing your work
Hillgrove
Hillgrove7mo ago
tbh it's not so much about being scared of lossing work.. it's just a folder structure I've used for 20+ years, and it fits logically in that folder (which is managed by Google Drive). Instead I'll place the local repos outside of Google Drives influence and symlink to it from its "logical" place. Then I don't have to rewire my brain to remember where it is, and Google Drive isn't touching the folder.
x0rld
x0rld7mo ago
you can do folder exlusion no ?
Hillgrove
Hillgrove7mo ago
sadly no I can do folder inclusion
x0rld
x0rld7mo ago
🤔
PixxelKick
PixxelKick7mo ago
I'd just use github straight up, Amy reason you don't want to use it?
jimbo
jimbo7mo ago
I used to store all my stuff in OneDrive then realized the folly of my ways. Time to change your folder structure a bit and move stuff out of Google Drive and just remember to commit/push your changes when you're done working.
x0rld
x0rld7mo ago
that's what they said
Instead I'll place the local repos outside of Google Drives influence and symlink to it from its "logical" place.
jimbo
jimbo7mo ago
I thought he meant put the git files outside Google Drive
x0rld
x0rld7mo ago
yeah + github
jimbo
jimbo7mo ago
wonder if Google will just slurp up files through a symlink though
x0rld
x0rld7mo ago
I don't think