5/7 Commit Your Changes won't commit


#1


https://www.codecademy.com/en/courses/deploy-a-website/lessons/github-pages/exercises/git-commit?action=lesson_resume


When I go to commit my changes I just get this:

$ git commit -m "Save my work"                                                                                                                
On branch master                                                                                                                              
                                                                                                                                              
Initial commit                                                                                                                                
                                                                                                                                              
nothing to commit

I know that's not correct but I can't figure out how to get it working


#2

i get the same thing please help me as well.. but i think i now what may be wrong. do you have a repository thats empty?

Because if you dont have one empty i dont know whats going on.. i have myne empty but if yours isnt you shouldnt be getting that message :stuck_out_tongue:.


#3

im not good at code but i get it to a point that i can code and i may not be able to pass this one so if you can help me thanks :). i really aprisheate it


#4

so i got it done finaly let me go back and ill say how it was done :slight_smile:

$ git commit -m "Save my work"
On branch master

Initial commit

Untracked files:
.gitignore
_config.yml
_includes/
_layouts/
_posts/
_sass/
about.md
css/
feed.xml
index.html

nothing added to commit but untracked files present
$ git add .
$ git commit -m "Save my work"
[master (root-commit) 505cab8] Save my work
20 files changed, 819 insertions(+)
create mode 100644 .gitignore
create mode 100644 _config.yml
create mode 100644 _includes/footer.html
create mode 100644 _includes/head.html
create mode 100644 _includes/header.html
create mode 100644 _includes/icon-github.html
create mode 100644 _includes/icon-github.svg
create mode 100644 _includes/icon-twitter.html
create mode 100644 _includes/icon-twitter.svg
create mode 100644 _layouts/default.html
create mode 100644 _layouts/page.html
:slight_smile: have a nice day!


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.