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
use github
it's made to host git
Don't use cloud drives like Google Drive, OneDrive, Mega, Dropbox, etc. to store your code
Like xtreit says, use Github
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.
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
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.
you can do folder exlusion no ?
sadly no
I can do folder inclusion
🤔
I'd just use github straight up, Amy reason you don't want to use it?
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.
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.
I thought he meant put the git files outside Google Drive
yeah + github
wonder if Google will just slurp up files through a symlink though
I don't think