我检出了一个现有分支,课,并开始更改某些文件,并删除了一个。git commit,更改为现有文件的处理方式不同
做完git add .
和git commit
之后,其中一些发生了变化,但其他发生了变化,但其他发生在评论文本结尾处。据我所知,我必须手动进行一些操作。
因此,对于删除的文件,我做了git rm file.name
。我得到了这部分。
我应该如何处理14-17行?
所有这些文件创建得早得多,没有新的。
非常感谢!
1
2 # Please enter the commit message for your changes. Lines starting
3 # with '#' will be ignored, and an empty message aborts the commit.
4 # On branch lessons
5 # Changes to be committed:
6 # (use "git reset HEAD <file>..." to unstage)
7 #
8 deleted: ../layouts/]
9 #
10 # Changes not staged for commit:
11 # (use "git add <file>..." to update what will be committed)
12 # (use "git checkout -- <file>..." to discard changes in working directory)
13 #
14 # modified: ../courses/show.html.slim
15 # modified: ../layouts/_header.html.slim
16 # modified: ../student_levels/_student_level.html.slim
17 # modified: ../subjects/_subject.html.slim
18 #
好的,我输入了'git commit -a',所有这些修改都被接受了。在此之前,我使用了'git add。'&'git commit' –