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

Explain Like I'm Five

21443 readers
76 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
[–] TheViking@nord.pub 1 points 8 hours ago (2 children)

Exactly, this use code. I opened this lesson, and did everything on my WSL terminal. So far, so good. But when it's this switching over, that's creating the problem. Ideally, the readme.md has already been created by the time l reach here or no ? If not, where do I create the readme ? In the WSL terminal or the vs code terminal ?

Yesterday, l had made an attempt at it, and this was what my vs code terminal showed me : https://retrofed.com/post/1259307/comment/1601827#comment_1601827

You see the result in the pic of this post. Today l worked it up again, and today vs code gave the same result. Then l downloaded git separately for windows, and then configured it on vs code. I don't know if l have done it in the correct way or not.

Anyways, l've shut down my system, and l shall look into it again tomorrow.

What a struggle trying to grasp a new idea !!!

[–] rozodru@piefed.world 2 points 3 hours ago (1 children)

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.

[–] TheViking@nord.pub 1 points 3 hours ago (1 children)

Somebody suggested me eclipse ide just now.

[–] rozodru@piefed.world 2 points 3 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.

[–] Muehe@lemmy.ml 2 points 4 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 4 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 4 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.