I'm new to programming in general. I understand the basic functions of git such as push, fetch. commit, add, etc.
I want to know if it's possible to add single files to a git repo. I'm learning js and the way I have it set up is by topics I want to learn, categorized by folders on my local drive:
-topic
--arrays
--async_promise
--backend
--api
--etc.
Within each folder, I have html/js practice files and I want to commit them to git just so I can show future employers that I am coding everyday.
On github, I want to commit and push these files to one folder under one repo such as web-dev/practice
. Can I do this with git or is this not best practice?
I tried using fetch but it fetched every single file into one topic folder onto my local drive.