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 ?

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 months ago (1 child)

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?

  • source
  • hideshow 2 child comments
  • [–] [S] 1 point 2 months ago (2 children)

    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.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 2 months 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.

  • source
  • parent
  • [–] 1 point 2 months ago (1 child)

    GitHub desktop takes the learning out of git. You press buttons. It does its thing.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 2 months ago (1 child)

    I do have GitHub desktop, but haven't used it yet.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 months ago (1 child)

    Muuuuch easier than learning git.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 months 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.

  • source
  • parent