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.

    How to update the master branch?

    Scheduled Pinned Locked Moved Troubleshooting
    19 Posts 15 Posters 16.6k Views 12 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.
    • F Offline
      Frans @sdetweil
      last edited by

      @sdetweil said in How to update the master branch?:

      git config --global user.name “Your Name”

      Worked!! Thanks!

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

        Und was soll uns das sagen?
        Any info about this error?

        pi@WEG-Infopanel:~/MagicMirror $ git stash
        package-lock.json: needs merge
        vendor/package-lock.json: needs merge
        package-lock.json: needs merge
        vendor/package-lock.json: needs merge
        package-lock.json: unmerged (928d17635a4aff632b96c3d78499948e24eb70be)
        package-lock.json: unmerged (1e84cc321d5ecb4199add46a08bfd7f3446d9c11)
        package-lock.json: unmerged (281f5adadabad8c0fa36c54a8b5c882b66e06722)
        vendor/package-lock.json: unmerged (a326b4026808f4b1ab060fe3c12e385f82330759)
        vendor/package-lock.json: unmerged (793948105835abe0d92caaf321cb78150cc983a4)
        vendor/package-lock.json: unmerged (9ad15ee58a9adce0f84708789296d2ae2ec1e029)
        fatal: git-write-tree: error building trees
        Kann den aktuellen Zustand des Index nicht speichern

        bheplerB 1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer @robiv8
          last edited by

          @robiv8 - You can delete those files and then do another git pull. So:

          cd ~/MagicMirror
          rm package-lock.json
          rm vendor/package-lock.json
          git pull
          npm install
          
          1 Reply Last reply Reply Quote 0
          • S Offline
            shazam23 @ninjabreadman
            last edited by

            @ninjabreadman I followed these steps and after running git stash apply I still get the “please commit changes” message…I’ve already backed up so unless the new update is thinking it also needs to be backed up I’m lost

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              tcsabina @shazam23
              last edited by

              @shazam23
              You have modified files that has not been ‘saved’ in the git database. Type ‘git status’, and it will list those changes.
              After that you can decide what to do: keep the changes (in this case use ‘git commit’)
              revert or discard the changes (in this case ‘git checkout’ is the command, if I am not mistaken)

              Not sure what exactly you try to achieve, but for an update I would use a fresh directory instead. Just create a new one and clone into it…

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • 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