Skip to main content

Command Palette

Search for a command to run...

35. A Readme day (Day 31)

Published
2 min read
35. A Readme day (Day 31)
M

I've just started my journey in learning to code and using Hashnode to chronicle my learnings and experience. Besides this, I work full-time and dabble in vlogging, podcasting, drawing, startup ventures, and fitness training.

It's Thursday, and inching closer to the weekend! That's my time for a marathon study!

My achievements today:

  • Working on the Readme.md file for my assignment due Sunday

  • Fixing my git

Readme.md

Geeks4Geeks has a good definition of what it is:

A README file is an essential guide that gives other developers a detailed description of your GitHub project.

I love creating Readme.md files with Markdown. It gives the impression of blog writing, which is far easier than coding! I used this cheatsheet for making my markdown file - Markdown Cheat Sheet by Markdown Guide.

The Git Repo issue

While writing down the content in the Readme file, from the corner of my eye, I spotted this on the Branch icon in the menu bar:

When I clicked it, it said, "10,000 Commits" pending!

I knew straight away I stuffed up something :(

Who do you call when something is wrong? My tutor! I explained the situation to her and she immediately knew what I had done.

So, this is what happened: Looks like at some point I had run a git init (the initializing command for a git repository) while in the Home directory of my computer. This created a local repository and it included my home directory, and all the files, subfolders, and every other item in it - basically everything from my computer!

Anyway, we had to remove this git folder from the Home directory, and that would remove the repo. Once we accomplished the removal, the issue was resolved.

Thank GOD, I looked at the alert. Had I not, I would've committed 10,000 files to my repo! Imagine, if I made it public on GitHub! Embarrassing to say the least.

Conclusion

Always ask if you don't understand anything. It's OK to be handheld by others as long as you learn from the situation.

11:45 PM: Good night :)

More from this blog

Manoj's coding diary

71 posts

I am Manoj Kumar, from Sydney, Australia. I am focusing on sharing my study of coding as a complete beginner here. My other activities: full-time work, blogging, vlogging, drawing & podcasting.