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.

    Github Tutorial

    Scheduled Pinned Locked Moved Feature Requests
    9 Posts 3 Posters 5.1k Views 3 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
      mortenbirkelund
      last edited by

      I was looking through the log of magicmirror and I found and error. It turned out to be an error in the danish translation file da.json. The smallest error ever, but an error, none the less.

      I am totally new to git and github, and are therefore not sure how to proceed. I am hoping that somebody will add an small post in the tutorial section of this forum with a “You’ve fixed a bug; whats next”, that simply explains how to handle the git-part and upload the fix to the repository. Hopefully this could encourage more people to help and contribute.
      I know I could read more general guides about git, but I am hoping that somebody would also explain about the branches in the repository and the specific parts concerning the magicmirror repository.

      strawberry 3.141S 1 Reply Last reply Reply Quote 1
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @mortenbirkelund
        last edited by

        @mortenbirkelund

        1. fork the repository on github by clicking on the fork button on the repository page
        2. clone your new created repository
        3. switch to develop branch git checkout develop
        4. make your changes
        5. stage your changed files git add file_a file_b ...
        6. commit your changes git commit -m "This is what I have changed"
        7. push your local changes to github git push
        8. create a pull request on your repository page to merge your changes to the main project

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 2
        • A Offline
          AAPS
          last edited by

          I am also new to GitHub. It won’t let me do git push because I am not signed in. However, I don’t know how to sign in without creating another account. Could someone point me in the right direction?

          1 Reply Last reply Reply Quote 0
          • A Offline
            AAPS
            last edited by AAPS

            @strawberry-3-141 ( or anyone else who knows what they’re doing )
            The only way I was able to make the changes I wanted was to go on GitHub.com
            I would like to be able to push changes from my pi, but I think that doesn’t work since I can’t sign in. What do I do?

            strawberry 3.141S 1 Reply Last reply Reply Quote 0
            • strawberry 3.141S Offline
              strawberry 3.141 Project Sponsor Module Developer @AAPS
              last edited by strawberry 3.141

              @AAPS when I’m trying to make changes to the repo the cli asks me for my github acc and password

              you can try this https://help.github.com/articles/setting-your-username-in-git/

              Please create a github issue if you need help, so I can keep track

              A 2 Replies Last reply Reply Quote 0
              • A Offline
                AAPS @strawberry 3.141
                last edited by

                @strawberry-3.141 Oh yeah! when I do git push it asks me for my user and password. However, it says that everything is up to date when it isn’t. Maybe I did something wrong.

                strawberry 3.141S 1 Reply Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer @AAPS
                  last edited by

                  @AAPS did you commit your files?

                  Please create a github issue if you need help, so I can keep track

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    AAPS @strawberry 3.141
                    last edited by AAPS

                    @strawberry-3.141 Come to think of it … It didn’t even show the changes when I did git status. I wonder why this is. Yes I did commit my files.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      AAPS
                      last edited by

                      Now I know that my problem wasn’t that I was not signed in. I probably shouldn’t try to have two versions of the mirror (one as a backup on GitHub and one that is showing). Maybe this is somehow messing things up for me.

                      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