[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT?] Moving files with git, without losing history.

Charles Plessy scrisse:

> Despite it is written everywhere that Git automagically understands
> renames, if I move a file and do ‘git log’ on it, I do not see its
> history anymore. In contrary to what is documented on the interweb,
> adding --follow or setting diff.renames to true never worked in my
> hands.
> Any suggestion ?

Try with options -M, -C or --diff-filter=<mode> which detect copies and
renames (see `git log --help`).

Ciao, Luca

 .''`.  ** Debian GNU/Linux **  | Luca Bruno (kaeso)
: :'  :   The Universal O.S.    | lucab (AT) debian.org
`. `'`  			| GPG Key ID: 3BFB9FB3
  `-     http://www.debian.org 	| Debian GNU/Linux Developer

Attachment: pgp1c_8YjXVPN.pgp
Description: PGP signature

Reply to: