Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using dropbox and git without conflitcts

Tags:

git

dropbox

I'm working with people using only Dropbox as version control and collaboration tool. I don't intend to change their behavior. On the other hand, I'm a git-addicted, and want to use it for my personal use.

Is their anyway to have a .git directory without syncing it in Dropbox ?

Thanks

like image 801
Sam Avatar asked Jun 09 '11 07:06

Sam


People also ask

Can I use git with Dropbox?

Dropbox + GitHub IntegrationsZapier lets you send info between Dropbox and GitHub automatically—no code required. Triggers when a new file is added to a folder. Make sure the number of files/folders in the watched folder does not exceed 4000. automatically do this!

What should I not store in git?

You shouldn't store credentials like usernames, passwords, API keys and API secrets. If someone else steals your credentials, they can do nasty things with it.

Is Dropbox a repository?

The Dropbox repository enables users to copy or create a shortcut or alias to files from their own Dropbox.


1 Answers

Selective Sync seems to be the solution, but beware: when you mark a folder as excluded, dropbox will delete it.

Just make a backup of your .git folder, mark it as excluded with Selective Sync, dropbox will delete it. When you copy the folder back, dropbox won't delete it again, and it will lack the dropbox sync mark (and its children too).

like image 111
Peerlow Avatar answered Oct 13 '22 18:10

Peerlow