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 ?

  • rozodru@piefed.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    13 hours ago

    wait WSL Terminal? so you’re using the Windows Subsystem for Linux?

    I think you’re making this harder on yourself than you need to. It’s like you’re trying to use a saw to cut a piece of wood before knowing what wood even is.

    I’ll be honest with you, don’t use VS code, you’re not ready for it. All you need right now is quite literally a regular windows terminal and a basic IDE. notepad++ or sublime text. ONCE you’ve learned the basics you can go back to VS Code, that VS Code terminal is gonna mess you up.

    A. make sure you have git installed just open your windows terminal and do winget install Git.Git

    B. again in the regular terminal navigate to your repo you’ve created.

    C. open notepad++ or sublime text or whatever basic IDE you picked and create a README.md and save in your repos directory.

    D. back in your terminal do git add . make sure you have a space between add and .

    E. then do git commit -m "initial README.md commit"

    F. finally do git push and you’re done. you can then check it with git status and it’ll show there’s nothing to commit, everythings up to date.

    I think the tools were messing you up. I don’t recommend VS Code for beginners, it messes them up. keep it simple for now.

      • rozodru@piefed.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        12 hours ago

        don’t. Eclipse is slow to start, it’s heavy, and the interface is garbage. Honestly just go with Notepad++ or Sublime Text or even Zed.

        Trust me I’ve been a web dev for 25 years, you don’t need all the bells and whistles right now. you literally just need a notepad and a terminal.