Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. Commits aus der Adaptervorlage löschen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Commits aus der Adaptervorlage löschen

    This topic has been deleted. Only users with topic management privileges can see it.
    • simatec
      simatec Developer Most Active last edited by

      Hallo zusammen,

      ich habe eine Frage an die Experten.

      Ich bin gerade dabei einen Adapter zu bauen und habe als Vorlage den ioBroker.template genommen.

      Nun möchte ich den Adapter gerne zum github pushen.

      Allerdings soll er mit der Alphaversion 0.0.1 und ohne die commits aus dem ioBroker.template gepusht werden.

      Wie stelle ich das an?

      Unbenannt ist er bereits, der Version ist auf 0.0.1 angepasst und der git Link ist auch geändert.

      Fehlt nur noch das pushen.

      1 Reply Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer last edited by

        https://stackoverflow.com/questions/968 … repository

        Die Antwort dürfte haben, was du brauchst. Alternativ kannst du beim nächsten Mal auch das Template-Repo als Zip herunterladen, dann ist soweit ich weiß auch keine git history dabei.

        1 Reply Last reply Reply Quote 0
        • apollon77
          apollon77 last edited by

          Hast Du dazu das Template auf Github geforkt? Ist das immer noch ein Fork?

          1 Reply Last reply Reply Quote 0
          • simatec
            simatec Developer Most Active last edited by

            ich habe das ganze per clone gemacht.

            git clone git@github.com:ioBroker/ioBroker.template.git iobroker.adaptername

            1 Reply Last reply Reply Quote 0
            • AlCalzone
              AlCalzone Developer last edited by

              Daher steht in der Anleitung auch dass man –depth=1 verwenden soll:

              git clone --depth=1 ...

              oder direkt die Zip herunterladen.

              Schau dir einfach meinen obigen Link an, da sind die nötigen Schritte beschrieben, um die History zu löschen.

              Edit - bevor das dort gelöscht wird, hier eine Copy-Pasta:
              ` > Step 1: remove all history (Make sure you have backup, this cannot be reverted)

              rm -rf .git
              

              Step 2: reconstruct the Git repo with only the current content

              git init
              git add .
              git commit -m "Initial commit"
              

              Step 3: push to GitHub.

              git remote add origin <github-uri>
              git push -u --force origin master</github-uri>
              ```` ` 
              1 Reply Last reply Reply Quote 0
              • Jey Cee
                Jey Cee Developer last edited by

                Ich hol mir das immer per gut clone und lösch dann den Ordner .git

                Danach ist es jungfräulich und ich kann es in ein neues github repo hochladen.

                Gesendet von meinem m8 mit Tapatalk

                1 Reply Last reply Reply Quote 0
                • simatec
                  simatec Developer Most Active last edited by

                  Perfekt… hat alles geklappt

                  Dankeschön für eure Hilfe

                  Gesendet von iPhone mit Tapatalk

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  788
                  Online

                  31.7k
                  Users

                  79.8k
                  Topics

                  1.3m
                  Posts

                  4
                  7
                  383
                  Loading More Posts
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes
                  Reply
                  • Reply as topic
                  Log in to reply
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                  The ioBroker Community 2014-2023
                  logo