MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Versioning/maintaining changes?

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 3 Posters 1.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rmeskill
      last edited by

      So I’ve modified my Magic Mirror a bit. Within some modules I’ve made some changes to the main files to add functionality or just change the size of font that’s being used. I also added my own calendars to the calendar module. However, whenever I upgrade a module or my whole Magic Mirror it seems these settings are all overwritten. I’m sure there must be a way to only merge new changes or somehow save my changes with git versioning, I just don’t know how-can anyone make some suggestions or point me in the right direction of a tutorial? Thanks!

      1 Reply Last reply Reply Quote 0
      • B Offline
        Bob
        last edited by

        If you’re customising look/feel, then edit custom.css, as that won’t be overwritten by a “git pull”. Also, for some modules you can add config or customisations outside of the modules directory, which will preserve the settings on a pull.

        Any changes you make to a modules actual code will get overwritten by an upgrade. You could avoid that if you create your own fork of a module (as some developers here have done).

        If upgrading MM itself, then you should always backup your config.js

        1 Reply Last reply Reply Quote 0
        • R Offline
          rmeskill
          last edited by

          I just realized I was making changes to the master simply in the css file vs the custom one-I’ve moved my custom settings to the custom file and that fixed that. However, I’m still having some issues with individual modules-I guess I’ll have to either write the dev team or create my own fork. If I create my own fork, though, how do I go about merging changes from the master to my fork?

          1 Reply Last reply Reply Quote 0
          • T Offline
            timjong93
            last edited by

            You could create a fork and have a branch within this repo referencing the original master branch.
            Using git different branches can have different remotes. (https://stackoverflow.com/questions/15775183/git-different-remote-for-each-branch).

            In this case if the master branch of the original project is updated you can pull these changes and merge them into your own fork’s branch. There could of course be merge conflicts which you would have to resolve.

            If you feel you have made changes which more people could benefit of, it would be easier to contact the original developer.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy