this post was submitted on 16 Jun 2026
9 points (84.6% liked)

Explain Like I'm Five

21443 readers
60 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
 

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 2 points 7 hours ago (1 children)

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 7 hours ago (1 children)

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 0 points 7 hours 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.