Git mv 命令

更新时间: 2019-07-13 17:17

git-mv - Move or rename a file, a directory, or a symlink

语法

git mv <options>... <args>...

参数

-f, --force
    Force renaming or moving of a file even if the target exists

-k
    Skip move or rename actions which would lead to an error condition. An error happens when a source is neither existing nor
    controlled by Git, or when it would overwrite an existing file unless -f is given.

-n, --dry-run
    Do nothing; only show what would happen

-v, --verbose
    Report the names of files as they are moved.

使用示例

# 改名文件,并且将这个改名放入暂存区
$ git mv [file-original] [file-renamed]

查看更多 git mv 命令的使用方法,可以使用命令:

git help mv
The CS Detective: An Algorithmic Tale of Crime, Conspiracy, and

The CS Detective: An Algorithmic Tale of Crime, Conspiracy, and

Jeremy Kubica / No Starch Press / 2016-8-15 / USD 13.74

Meet Frank Runtime. Disgraced ex-detective. Hard-boiled private eye. Search expert.When a robbery hits police headquarters, it's up to Frank Runtime and his extensive search skills to catch the culpri......一起来看看 《The CS Detective: An Algorithmic Tale of Crime, Conspiracy, and 》 这本书的介绍吧!

在线进制转换器

在线进制转换器

各进制数互转换器

随机密码生成器

随机密码生成器

多种字符组合密码

UNIX 时间戳转换

UNIX 时间戳转换

UNIX 时间戳转换