Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitHub Dropbox - best way to sync between computers?

How should I best sync a GitHub repo that is also synced on Dropbox between two computers?

I had an old computer that does not power on, which had a GitHub repo that was also a Dropbox folder (so everything in it was backed up to my Dropbox).

I now have a new computer, which after I synced to Dropbox, has the entire repo. However, it is not linked to my GitHub Desktop (i.e. my GitHub Desktop application does not recognize it).

Is there a way to make GitHub Desktop recognize the Dropbox folder on my new computer as a Git repo and sync to GitHub?

like image 599
catchablepaper Avatar asked May 14 '26 17:05

catchablepaper


1 Answers

So you are saying the best bet in this case is to delete the folder in Dropbox and clone it from GitHub fresh?

What you can push in Dropbox is a bundle (using the git bundle command): that will be one file (easy to synchronize), from which others can clone/pull from: it acts as a "remote".

Plus, it won't include your local configuration (which might have sensitive information)

like image 147
VonC Avatar answered May 17 '26 11:05

VonC