mv [options] source dest
mv [options] source... directory
mv aaa bbb
mv info/ logs
$ mv /usr/student/* .
$ mkdir include
$ 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
#
原文:https://www.cnblogs.com/anliux/p/11794477.html