6. git workflow


#1

cant figure out why it wont let me commit i type git commit "message" and it doesn't accept it


#2

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!


#3

Did you commit your changes to the Git repository

that's what it says


#4

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


#5

like what ? i tried pretty much everything


#6

When you try to commit. What does git say?


#7

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.


#8

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


#9