Skip to content

Commit 73d0e36

Browse files
amimibearnetworm
authored andcommitted
git mv->git rm
1 parent c2a2641 commit 73d0e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/02-git-basics/sections/recording-changes.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,5 +627,5 @@ $ git add README
627627

628628
如此分开操作,Git 也会意识到这是一次重命名,所以不管何种方式结果都一样。
629629
两者唯一的区别在于,`git mv` 是一条命令而非三条命令,直接使用 `git mv` 方便得多。
630-
不过在使用其他工具重命名文件时,记得在提交前 `git mv` 删除旧文件名,再 `git add`
631-
添加新文件名。
630+
不过在使用其他工具重命名文件时,记得在提交前 `git rm` 删除旧文件名,再 `git add`
631+
添加新文件名。

0 commit comments

Comments
 (0)