How to add multiple files to Git at the same time

后端 未结 10 622
半阙折子戏
半阙折子戏 2021-01-29 18:12

This will be my first git use. I have added new files ( a lot ) to the folder/project ( git local repository).

I went through online tutorials and forums and see i can do

10条回答
  •  有刺的猬
    2021-01-29 18:39

    It sounds like git is launching your editor (probably vi) so that you can type a commit message. If you are not familiar with vi, it is easy to learn the basics. Alternatives are:

    • Use git commit -a -m "my first commit message" to specify the commit message on the command line (using this will not launch an editor)

    • Set the EDITOR environment variable to an editor that you are familiar with

提交回复
热议问题