Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

GIT Commit command is not working correctly

hung luong May 2, 2018

I tried to follow the example in the tutorial with the command

git commit -m 'Initial Commit'

It doesn't work.

When I type only "git commit"  I get the following message

Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit.

On branch master

Initial commit

Changes to be comitted:

new file: locations.txt

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2018

Kindly try to type:

git commit -m "Initial Commit"

If the command above does not work provide the error, which you can see in the terminal.

hung luong May 10, 2018

Thanks Alexey,

The double quote makes a difference.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events