Hacker News new | ask | show | jobs
by zawerf 3041 days ago
I do use git too. But it's nice to be able to jump between multiple computers without needing to push an incomplete commit to remote (when I get tired from sitting in front of desktop I switch to laptop to code in bed).

Also dropbox's 30 day version history did save me a couple times when I accidentally deleted something before committing. And not having to worry about losing the day's work even if your computer fails is good for peace of mind.

That said this hits a lot of edge cases with dropbox syncing since it's not built for this kind of workflow. Every time you do npm install it will cause thousands of files to sync. I have had the .git folder get corrupted when I start using it before it has fully synced. Or git would handle syncing internal symlinks/permissions/casing differently and I would need to rely on git to restore.

1 comments

The only problem with using dropbox in this case, is if you accidentally dump node_modules inside of there, it really makes your file history revisions in dropbox messy.

That and if you have to sync with another PC at home makes your computer sluggish for like half an hour while its syncing

My solution to you is to have your code repos in another storage solution (not dropbox). Unfortunately you would have to pay for that too

Or, you could use a built in IDE that has a autosave local revision history. I know most of the brainstorm products have this feature, such as PHPstorm. This would prevent accidentally deleting something before committing

For incomplete commits / switching computers, I can't really think of any workarounds for this unfortunately. Dropbox is very convenient here. The only solution is to use something like teamViewer and remote into your desktop PC from your laptop