6. git workflow

cant figure out why it wont let me commit i type git commit “message” and it doesn’t accept it

Is it telling you “No.” or is it perhaps explaining why it’s not accepting it? Seems like its explanation of the situation is relevant information here!

Did you commit your changes to the Git repository

that’s what it says

The other it. Git. If git refused to commit, then it’s Git’s reasoning that we need to consider.

like what ? i tried pretty much everything

When you try to commit. What does git say?

For example, here’s what a commit might look like:

$ git commit -m 'adding stuff and things'
[master (root-commit) 751936d] adding stuff and things
 2 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 stuff
 create mode 100644 things

See how git is explaining what it’s doing?
What if I try to do something it won’t allow, like committing no change:

$ git commit -m 'useless commit'
On branch master
nothing to commit, working directory clean

Here git tells me that there was nothing to commit, so no commit was made.

A post was split to a new topic: I can’t understand what is problem here?