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.

    To delete a commit from git ..

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 735 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.
    • E Offline
      emrhssla
      last edited by

      0_1571757819453_10f6b871-f1e9-4882-b995-ce700ee5715a-image.png

      I want to delete commit(371e64e,50879e0)…

      How should I delete it?

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

        @emrhssla see
        https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/30893040/git-remove-commit-from-history&ved=2ahUKEwiQt4nInLDlAhUMPK0KHbgQBN8QFjABegQIDxAL&usg=AOvVaw3wWocIBsS8f0EaDreqBEw4

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil sorry, i dont understand, Because of my poor English.

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

            @emrhssla
            git log to get the commit number

            git reset --hard commit_number~
            

            where commit_number is the id of the commit you wish to remove.

            this will update your local repo.

            if you have already pushed the commit to a remote, then you will have to repush with

            git push -f
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            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