19

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
[-] Muehe@lemmy.ml 3 points 1 week ago

Ideally, the readme.md has already been created by the time l reach here or no ?

Depends, if you followed the tutorial precisely it should already have been created in the step "Create the repository 3.". You can use the ls command in the WSL terminal to see if it exists.

If not, where do I create the readme ?

In the base directory of the git repository you cloned from Github. You can do so with the command echo "blaaaa" > README.md (this will overwrite the file if it exists already).

In the WSL terminal or the vs code terminal ?

See I think this is your misunderstanding right here. The tutorial tells you to enter code ., where code means "start VS Code" and . means "in the current directory". You are supposed to then use the file explorer inside VS Code to select the README.md and modify it.

This may not work as intended in WSL. If you enter which code and there is no output it won't work. Is there any reason why you are using WSL instead of just installing git for Windows? It comes with a terminal emulator, so there should be no problem following the tutorial and you can eliminate WSL as a possible friction point.

[-] TheViking@nord.pub 1 points 1 week ago

Thank you very much. I shall try tomorrow again. If WSL is not required, l won't use it tomorrow. Now that l have installed git for windows, this entire work can be done on the terminal of vs code ?

[-] Muehe@lemmy.ml 2 points 1 week ago

Theoretically yes, but I would recommend the terminal git brings with it. You should be able to just open any location on your drives, right-click, and select "GitBash here". This will start a terminal with the directory you were in as the working directory.

[-] TheViking@nord.pub 1 points 1 week ago
[-] Muehe@lemmy.ml 1 points 1 week ago

Drives, not drivers. HDDs and SSDs.

[-] TheViking@nord.pub 1 points 1 week ago

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.

I know that its MS. Once i have mastered it, i would switch over to Kate.

[-] Muehe@lemmy.ml 2 points 1 week ago

I think you replied this in the wrong thread, but I generally agree with this person. Use GitBash as the terminal and only use VS Code as an editor (or even skip VS Code entirely). Not because it's MS, but just because it adds complexity you don't need while learning.

By the way, if you just want to learn git you can try this website, it's a fully self-contained learning experience with a terminal emulator inside the browser: https://learngitbranching.js.org/

[-] TheViking@nord.pub 1 points 1 week ago

I tried it. Not my Cup of Tea, not yet.

this post was submitted on 16 Jun 2026
19 points (100.0% liked)

Explain Like I'm Five

21505 readers
15 users here now

Simplifying Complexity, One Answer at a Time!

Rules

  1. Be respectful and inclusive.
  2. No harassment, hate speech, or trolling.
  3. Engage in constructive discussions.
  4. Share relevant content.
  5. Follow guidelines and moderators' instructions.
  6. Use appropriate language and tone.
  7. Report violations.
  8. Foster a continuous learning environment.

founded 3 years ago
MODERATORS