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.

    issues updating MMM-calendar EXT3

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    18 Posts 4 Posters 1.1k Views 4 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.
    • S Offline
      sdetweil @nschertz
      last edited by sdetweil

      @nschertz sorry, oops… wrong command!

      git checkout package-lock.json
      

      fixed the prior posts with note edited

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • N Offline
        nschertz
        last edited by

        to clarify… execute “git checkout package.json” instead of " git reset package.json" or execute “git checkout package.json” and " git reset package.json"?

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @nschertz
          last edited by

          @nschertz git checkout

          restores it from the local source repo

          git reset
          removes it from the staged to be submitted as a change

          I posted the checkout first, then a user posted reset and I blindly followed it…
          my mistake

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • N Offline
            nschertz
            last edited by

            oops meant to type

            to clarify… execute “git checkout package-lock.json” instead of " git reset package-lock.json" or execute “git checkout package-lock.json” and " git reset package-lock.json"?

            1 Reply Last reply Reply Quote 0
            • N Offline
              nschertz
              last edited by

              Got it ! git checkout… worked! Thanks for the clarification on what git reset does verses git checkout.

              S 1 Reply Last reply Reply Quote 1
              • S Offline
                sdetweil @nschertz
                last edited by

                @nschertz awesome… sorry for the misdirection

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @sdetweil
                  last edited by sdetweil

                  in the git model

                  the files you see are called the working directory
                  and the repo is hidden in the .git folder

                  that is where the actual ‘state’/contents of each file exists

                  so checkout copies the contents from the repo to the working directory

                  if you were developing and had a change
                  git status would show changed in the working directory

                  git diff will show WHAT changed

                  to lock it down in the local copy of the repo
                  you git add it to a potential ‘commit’,
                  then git status shows it as ‘staged’

                  to REMOVE it from staged, use the git reset command

                  git commit puts it into the local repo as a change

                  then you ‘push’ your entire local repo to the parent (git remote -v)

                  and the changes (if accepted) are merged and that change is in the master for
                  all new ‘pulls’

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  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