Hi.
In the section http://gitref.org/basic/#rm-mv you are saying that git-rm is equivalent to three commands:
git rm orig
mv orig new
git add new
Although you emphasize it clearly that git rm removes files from disk, the above example doesn't conform to that. After executing git rm orig, the orig file will be removed from disk, so there will be nothing to apply the mv command to. This may lead to some confusion for novice git users. You should probably add --cached option, like this:
git rm --cached orig
mv orig new
git add new
Hi. In the section http://gitref.org/basic/#rm-mv you are saying that git-rm is equivalent to three commands: git rm orig mv orig new git add new
Although you emphasize it clearly that
git rm
removes files from disk, the above example doesn't conform to that. After executinggit rm orig
, the orig file will be removed from disk, so there will be nothing to apply themv
command to. This may lead to some confusion for novice git users. You should probably add--cached
option, like this: git rm --cached orig mv orig new git add new