How can I commit files with git?

前端 未结 9 1723
慢半拍i
慢半拍i 2020-12-07 12:21

None of the tutorials will help!
They all do that thing where they just assume I know what to do..

Currently, my terminal window starts with..

#          


        
9条回答
  •  执念已碎
    2020-12-07 12:44

    This happens when you do not include a message when you try to commit using:

    git commit
    

    It launches an editor environment. Quit it by typing :q! and hitting enter.

    It's going to take you back to the terminal without committing, so make sure to try again, this time pass in a message:

    git commit -m 'Initial commit'
    

提交回复
热议问题