$ mkdir include
$ git mv common include
$ git rm -r common
$ git add include/common
运行git status会显示如下内容:
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# renamed: common/file.txt -> include/common/file.txt
#