• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Git with MM

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 832 Views 2 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.
  • M Offline
    MagicBeginner
    last edited by Jun 28, 2022, 9:40 AM

    Hello everyone,

    I’m a beginner with MM and Git, and I’d like to develop and test a custom module. But I’m not sure to know how to setup Git with MM, so I have a got a basic question.

    What I did was to import the MM repository on Git, but now I’m not sure if rather not make a new repository with the MM files on it, because maybe this should be done only if I want to modify MM which is not my case ? But I’ll not get the updates of MM if I do this ?

    In a nutshell what should I do to start working on my module and testing it using Git ? It’s my first time doing it so I’m really not sure what to do…

    Thank you.

    S 1 Reply Last reply Jun 28, 2022, 11:23 AM Reply Quote 0
    • S Offline
      sdetweil @MagicBeginner
      last edited by Jun 28, 2022, 11:23 AM

      @MagicBeginner a module has its own git repository separate from MagicMirror.

      make the module folder
      cd ~/MagicMirror/modules
      mkdir ???
      cd ???
      git init

      and off you go
      git add,
      git commit

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Jun 28, 2022, 12:26 PM Reply Quote 0
      • M Offline
        MagicBeginner @sdetweil
        last edited by Jun 28, 2022, 12:26 PM

        @sdetweil Thank you, but I have to first import the repository (when you click on the +), and then add my new module right ?

        S 1 Reply Last reply Jun 28, 2022, 12:41 PM Reply Quote 0
        • S Offline
          sdetweil @MagicBeginner
          last edited by Jun 28, 2022, 12:41 PM

          @MagicBeginner sorry, don’t understand.
          if u are creating new

          where is the +?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Jun 28, 2022, 1:06 PM Reply Quote 0
          • M Offline
            MagicBeginner @sdetweil
            last edited by Jun 28, 2022, 1:06 PM

            @sdetweil
            Sorry,
            my question is : do I have to download the content from https://github.com/MichMich/MagicMirror and then import it to a private repository, or should I do something else (I clicked on the + at the top right corner of the page with “import repository” thinking that it would make a “private” instance of the public repository, that I could modify). I am new to Git and I don’t want to mess up anything. Thank you.

            S 1 Reply Last reply Jun 28, 2022, 1:11 PM Reply Quote 0
            • S Offline
              sdetweil @MagicBeginner
              last edited by Jun 28, 2022, 1:11 PM

              @MagicBeginner when you git clone you copy the repository too

              your module should NOT be added to the MM git repo
              (unless u are creating a new default module which would be shipped as part of MM)

              and you don’t NEED ANY of MM to create and use a git repo for your module

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                3/6
                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