C
C#•13mo 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 👻 🎃
use github it's made to host git
Angius
Angius•13mo ago
Don't use cloud drives like Google Drive, OneDrive, Mega, Dropbox, etc. to store your code Like xtreit says, use Github
Hillgrove
HillgroveOP•13mo 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
Anchy•13mo 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
HillgroveOP•13mo 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 👻 🎃
you can do folder exlusion no ?
Hillgrove
HillgroveOP•13mo ago
sadly no I can do folder inclusion
x0rld 👻 🎃
🤔
PixxelKick
PixxelKick•13mo ago
I'd just use github straight up, Amy reason you don't want to use it?
jimbo
jimbo•13mo 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 👻 🎃
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
jimbo•13mo ago
I thought he meant put the git files outside Google Drive
x0rld 👻 🎃
yeah + github
jimbo
jimbo•13mo ago
wonder if Google will just slurp up files through a symlink though
x0rld 👻 🎃
I don't think
Want results from more Discord servers?
Add your server