I’ve managed to install GIT and create a repository and set up a GitHub account (RHH42). I’ve not been able to figure out how to add my CSS and HTML files to GitHub. I don’t even know if I have those files staged in the repo. What’s worse is that I don’t know how to check to find out.
I watched a couple of Microsoft YTs including the one on using VS Code to make a commit but I can’t make it work. When I drag a folder (css-practice, with contains the css file and the html index file) to the icon, I see indications onscreen that seem to indicate that the commit is working, but it never finishes. Furthermore, I have to close VS Code to make it stop.
Here’s a screenshot taken when the commit was in progress.
Hi Vikramvi,
I took your advice and stopped trying to manage my GIT and github repos with VS Code. I’m using GIT Bash on Windows 10. This is forcing me to learn more about GIT and github; and while it slows me down a good bit trying to learn bits and pieces, I think I will eventually get to where I can use them faster without so many errors and without wondering if my learning problems are with VS Code or with GIT/GitHub.
Would you do me the favor of looking at my github account (RHH42) to see if you can see files there? There should be 2 in addition to the ReadMe file.
Also, how can I tell if my commit comments are in my github repo?
I found my problem, proving that even blind squirrels do find acorns.
Although the error messages didn’t indicate directly what the problem was, I discovered by searching error messages that my user.name might be wrong. The page that I saw this showed that I should use git config user.name "XXXX" to set it . Although I thought I did this when I installed and set up GIT, I did it again. That page also suggested that it should be set globally, ie, in my root directory which I’m pretty sure I did not do. I took care of that then did a git pull "the-clan" which worked. I was then able to push it which worked.
I’m posting my solution in case it helps someone searching for answers here.
The worst thing about the Git setup is you do it one time and forget about it. Then suddenly you are on a new system and you have to remember (you likely won’t) how to do it again. It is set and forget, but mostly just forget.