I am studying the rails tutorial using window cloud9.

Git commit -m"something"

If there are multiple commit files now, if you write one of them, the other multiple files will be committed, so there is no problem.

  • Answer # 1

    If you put a commit message, you can do anything, but you can put a revision history, an implementation summary, a diary, or a single message that you can see later.

  • Answer # 2

    If you check the help of the git commit command, you will solve the question. .

    git commit -m"Some kind of comment" ;, so I would like to git commit after adding/modifying a file with any comment that is easy to understand.

  • Answer # 3

    Is added, and what has been modified.

  • Answer # 4

    Yes. Anything is fine.
    You may want to investigate other projects to see what comments you can make.

    Ruby on Rails Tutorial: Learn Web Development with Rails repository example

  • Answer # 5

    Because it is linked, the ticket number is put in the commit comment.
    Also, add a comment so that you can see later what action is included in each commit.
    What is the file name alone? It will be.

Related articles