I made a repo. I added 3 files no problem. Made updates to the files. I was able to push the changes from my index file. When I try to do the same with my main.css file I get this :
n branch master
Your branch is up-to-date with ‘origin/master’.
nothing to commit, working tree clean
I made changes to the main.css but I can’t push to GitHub. I followed the same steps for my index.html. I have tried everything Stackoverlfow says but nothing is working. Any suggestions?
You have to add the files to the staging area before you can commit them. The quickest way is to type:
“git add .” (Be sure you include the period. Very important.)
Also, if there are files you don’t want added to the staging area, you can also go:
“git add style.css”
I hope that helps. Git and GitHub can be a bit confusing. Here’s a video series that really helped me.
I did the git add . but I still cannot add the css file changes. This is what I get:
Daphnies-MBP:my-paperbot-site daphniedonnell$ git add main.css
Daphnies-MBP:my-paperbot-site daphniedonnell$ git commit -m "Background color changed"
On branch master
Your branch is up-to-date with ‘origin/master’.
nothing to commit, working tree clean
Daphnies-MBP:my-paperbot-site daphniedonnell$
By any chance did you save the main.css file itself? Git is telling you the main.css it has is the same as the current saved copy.
Did you do a “git status”? What is it saying about the file itself?
That was my issue. There were no changes to the file because I saved it in the wrong folder. Thanks for the help guys 
1 Like
You were right! I watched them last night. I am going to watch again and make a few notes. Thank you 