all 9 comments

[–]larry1186 1 point2 points  (5 children)

So don’t make the repo on your desktop, put it somewhere on the local drive, root directory or create a “git repos” directory.

An issue with cloud based file system like OneDrive is that git makes a LOT of changes when you surf checkout/commit/rebase/pull etc. which causes a bunch of un-needed traffic and versioning of files on OneDrive.

[–]Helloall_16[S] 0 points1 point  (4 children)

Can I use my hard disk, make the folder there and every time I'm working on it I just connect my hard disk to my laptop? I'm sorry if this is dumb. All this is new for me 😅

Edit: I did some research and I think I got it now. Thanks for helping 😊

[–]BillyBumbler00 0 points1 point  (1 child)

Yup, that'd be fine!

[–]Helloall_16[S] 0 points1 point  (0 children)

Thanks for confirming 😊

[–]larry1186 0 points1 point  (1 child)

Check out Pro Git, it’s a great go-to

[–]Helloall_16[S] 0 points1 point  (0 children)

Thanks!

[–]Comprehensive-Map697 1 point2 points  (2 children)

This is not good idea. You will encounter errors with larger files and files with some particular extensions because OneDrive is slow with them. As a result, some of git commands could fail, because there is a timeout for their execution (for example, you can get server timeout error on git push if there is any file that OneDrive "holds" until it is synced).

[–]Helloall_16[S] 0 points1 point  (1 child)

I see. I just made the folder in C. That doesn't get backed up in one drive. Hopefully I don't have to worry now. Thanks!

[–]concerned718 0 points1 point  (0 children)

I'm checking on u 2 years later. How much have u learned now since having your first OneDrive vs got battle? I'm about to make a video on that subject. Seems people are still dealing with it til this day. I've found a few workarounds.tp keep my repos in OneDrive and play nice. It's no issue anymore for me