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
突破之道

突破之道

(美)基思 R. 麦克法兰(Keith R. McFarland) / 江南、江维 / 机械工业出版社 / 2017-4 / 49.00

《从优秀到卓越》前传。 深入调查7000多家公司、1500多名关键管理人员,总结提炼出6大突破式发展策略。 解析创业成功后的公司如何腾飞,以几何速度增长,突破10亿关口。 阐述为什么创始人自己才是企业实现突破的最大障碍。一起来看看 《突破之道》 这本书的介绍吧!

JSON 在线解析

JSON 在线解析

在线 JSON 格式化工具

Base64 编码/解码

Base64 编码/解码

Base64 编码/解码

SHA 加密

SHA 加密

SHA 加密工具