I am trying out git on my local system, and I am a complete beginner, that is I have 0 knowledge of git. For a starting I wish to undertake some kind of project to get the hang of how it works. I wish to do it locally, but if you are interested, I am ready to work as a team on GitHub. Do you have any idea ? It ought to be graphical and fun !

  • hendrik@palaver.p3x.de
    link
    fedilink
    English
    arrow-up
    5
    ·
    11 days ago

    As a beginner, I’d start with small things. And not in a real code repository. Copy a few text files into a directory, and then commit them into version control. Modify them. See how the workflow is. Check if you can go back 2 versions and find out what changed. Do a branch and edit stuff there, then get it into the main branch. See if you can cause a merge conflict and handle it.

    If you can do all of that on random placeholder textfiles, you can move on. But we’d need to know which programming languages and software you like to give recommendations.

    • LoveEspresso@cafe.coffee-break.ccOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 days ago

      I created a repository from my terminal as a testing. Now I wish to see how git works. What you say, l need to understand in terms of precise git commands, because all this can be done from the terminal. I prefer working on image files. Or you think text files would be better ? I’ve no idea of programming languages, but maybe html ?? And what do you mean by software ???

      • vrek@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        ·
        11 days ago

        One of the big advantages of git is you can see the difference between versions of text. Since you don’t programming languages imagine a group report project in school. Sally may make up the general structure and main points. Tom writes a expanded section of 2 of the points. Matt writes another 2. Sue writes the introduction and conclusion. Jason edits it. Git lets you walk back through all that and shows you who did what and lets you keep/discard the changes. It can show you who changed what and when.

        With pictures and images it can store the different versions but can’t distinguish what exactly changed. Like it can store a picture with a blue background and then someone changes it to an orange background but it can’t know exactly what changed only that it’s different,if they changed the background of a city skyline they could of also inserted a tiny monkey into one of the windows. You would have to scan everything versed it highlighting only the differences.

        Btw … here is a book with A LOT more details https://git-scm.com/book/en/v2

          • vrek@programming.dev
            link
            fedilink
            English
            arrow-up
            4
            ·
            11 days ago

            If you want html is fine. You could also just write anything like a story, a shopping list, a schedule of chores anything really.

            What’s your goal with learning git? Is it to learn programming?

            • LoveEspresso@cafe.coffee-break.ccOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              11 days ago

              Now you’re suggesting me very creative methods regarding how l can use git in my daily life. Maybe l could even create an ui for this purpose :)))

              But yes, I do wish to get into programming, as that’s what’s going to become a major source of employment, whether we work in some kind of organisation or work in some sort of decentralised setup.

              • vrek@programming.dev
                link
                fedilink
                English
                arrow-up
                2
                ·
                11 days ago

                Basically anything you want to track the changes to can be used with git.

                If you want to get into programming something I would recommend is deciding if you want front end or back end development. What that means is like do you want to do ui/ux or computation work? The basics are similar but quickly diverge. Html is front end, it’s making things look good and easy for the user. Something like rust or c# is more backend. Do you want to design what the user sees or how to solve problems?

      • hendrik@palaver.p3x.de
        link
        fedilink
        English
        arrow-up
        3
        ·
        11 days ago

        I mean you probably want to use Git to solve some kind of problem in your life. The usual use-case is to manage software projects. It’s also good at managing text files of any kind. Whatever you like. A HTML file is text, too. It’s a bit less good with images and other binary formats. But you can use it to manage them as well.

        • LoveEspresso@cafe.coffee-break.ccOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          11 days ago

          I don’t know what are binary formats specifically, but I too would be using it for software related projects. It’s just that l need to get the hang of these tools.

          Right now, Gemini is proving to be a great teacher, telling me the steps and also rectifying my errors.

          • HarkMahlberg@kbin.earth
            link
            fedilink
            arrow-up
            2
            ·
            11 days ago

            By binary formats, they mean files that are intended to be interpreted or executed by a computer.

            For example, a program (my-app.exe) is a binary file. You use it by double clicking it, and the computer runs the program. If you tried to read the file by opening it in a text editor, you would only see gibberish and random characters.

            Another example, an image (my-photo.jpg) is a binary file. It’s not a program, but you can view the image with a program like Paint. But just like a program, if you opened an image in a text editor, you would still see gibberish. That’s because the gibberish is interpreted by Paint so that you can view the image.

            But source code (my-website.html) is not a binary file, it’s just a text file with fancy formatting and special rules on how to write it. You can open an HTML file in your text editor, and as long as you know the rules you can learn to read it.