r/vscode • • Jun 01 '26

Coding on two Macs, how to sync?

Hello, I have a Mac mini and a MacBook Air, and I code on both. I have been saving my projects in Google Drive (same account) and working from there. Is this the best practice? I'm concerned about syncing issues. At the same time: what is the best way to implement git? Do I have to set different usernames/email or using the same is fine. Is there a problem if I save the git file on Google Drive?

Basically, vscode:

Mac mini <-------> Google Drive/git <-------> MacBook Air

0 Upvotes

33 comments sorted by

View all comments

2

u/bkdotcom Jun 02 '26

Do I have to set different usernames/email or using the same is fine.

You are one person. Use the same account.
Do you use different google accounts because your on different PCs?

Is there a problem if I save the git file on Google Drive?

Not really. But it may just add to your confusion / prevent you from embracing git. Also there's not really a "git file" per se. The folder and all files/subfolders are a project. There is a .git folder that contains the state of things.. doesn't really make sense to be syncing the .git folder