https://www.theodinproject.com/lessons/foundations-git-basics this is the lesson that i am following. I completed the Create the Repository section successfully. I also completed the Use the Git Workflow section successfully. It’s the Modify a File or two where I am facing all the difficulties.

Can someone please show me the way how to do it ?

  • pseudo@jlai.lu
    link
    fedilink
    English
    arrow-up
    2
    ·
    14 days ago

    Git is about having a version of whatever project on a file in your computer (the file is called "local repository) and periodically synchronised its content with a remote file called central repository who is accessed potentially by other that you.

    The first step is to make sure you have git, the software, on your computer and that you have access to a central repository, here GitHub where you need an account. Have you done that?

    • TheViking@nord.pubOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      14 days ago

      I already had git installed in my WSL. Today l downloaded and installed git in my windows 10 as well. I also have a GitHub account.

      • pseudo@jlai.lu
        link
        fedilink
        English
        arrow-up
        2
        ·
        14 days ago

        So now you need to connect Git (the software on your computer) to GitHub (the internet site that will host the central repository). That is done using the command

        git config

        And giving it your github credential as mentionned in the Setting Up Git lesson that is link in the lesson you are following.

            • Nighed@feddit.uk
              link
              fedilink
              English
              arrow-up
              3
              ·
              13 days ago

              It helps you learn what you WANT to do. Later you can learn HOW to do it in command line if you want to.

              You can get by just fine using gui tools for most stuff, only rarely needing raw git commands (when you would probably be checking the docs anyway)

              I don’t understand how people check diffs without a GUI/IDE tbh.