git rename

论坛 期权论坛 脚本     
匿名技术用户   2020-12-29 12:49   85   0

Git detects renames rather than persisting the operation with the commit, so whether you use git mvor just a plain mv doesn't matter.

The log command, however, takes a --follow argument that continues history before a rename operation (that is, it searches for similar content using the heuristics):

http://git-scm.com/docs/git-log

To lookup the full history use the following command:

git log --follow ./path/to/file

转载于:https://my.oschina.net/dongwq/blog/179604

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP