logo

Avoid sync folders and files in dropbox or google drive as git with .gitignore

    • Marton
    • May 27th, 2015

    Great tip, I have been looking at solving this problem forever. Mega will be great for storing dev files. Thanks!!

  1. Marton :

    Great tip, I have been looking at solving this problem forever. Mega will be great for storing dev files. Thanks!!

    No problems! I have been using MEGA since 2 months ago and i’m still satisfied by their service so I still approve the article. 😀

    • hugo
    • July 12th, 2015

    SeaFile also allows a ‘seafile-ignore.txt’ file with file and folder patterns to be excluded. Works great with ‘.git/’ and ‘node_modules/’

    • Robert Avram
    • December 18th, 2015

    The title of the document is misleading. You’re not providing a solution for Dropbox or Google Drive. Good article otherwise but you really should change the tiltle.. to maybe Alternatives to GoogleDr or DrobB blah blah…

    • Andyhasit
    • January 17th, 2016

    I also struggled with this dilemma.
    I went for mega, like you did, but the website is flaky as anything (icons aren’t even displaying – why does every page have an animation on load?) and the sync app feels iffy, I don’t think my ignore patterns are being applied. There’s just something I distrust about Mega: perhaps the flakiness of the website, the fact the sync app isn’t behaving as I expect it, that certain things on their dev todo list have allegedly been there untouched for months, perhaps Kim Dotcom’s background, or maybe t is all good but I don’t trust current powers to leave it be and not just pull the plug on it.
    I’ve just tried pcloud (i.e. downloaded the desktop app) and it lets you specify ignore patterns which it applies of files and folders. You can use * and ? wildcards, but it’s not regex or gitignore. But it means you can put “node_modules” and “.git” and it will correctly ignore them.

    • Miguel Lara
    • June 11th, 2016

    Dude, just reaching out to say thank you.
    I had been struggling with all the thousands and thousands of dependencies in my projects and the more projects I had, the more annoying it was getting waiting for sycs between my PC/Mac at the office and home. Dropbox is surely dropping the ball on this one, I went with Megasync and so far the experience has been outstanding, I’ve been trying them for a couple months now and I thin I am ready to jump to the paid subscriptions just to support them a little since 50gb is enough for my needs.

    • Dylan
    • May 24th, 2017

    Thank you, this article supported my decision to eventually (begrudgingly; this post is a form of forcing myself) switch from Dropbox to MEGA. It’s starting to become a little tedious to have to sync node_modules, and the FREE tier’s storage space is very nice to have.

    • Knox
    • July 22nd, 2017

    How do you deal with syncing multiple computers with Mega and git repos?

    I have the same setup as you: ignore .git directory, etc., and sync the rest with megasync. But then I work on my desktop, commit changes to git, and if I switch to my laptop it syncs with Mega. Now git thinks I have changes in the working directory, so doing `git pull` wants me to re-commit and do a merge. So I have to `git fetch` and `git reset origin/branch,` which seems kind of kludgy.

  1. No trackbacks yet.

 
Bitnami