Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote:
But would that allow you to commit the file in the new place, and retain its history? (Btw, would "filename" be the old filename or the new one? What do you do if they differ?)
If you merge it from a place where the file existed before (as you normally would), then git retains a parent pointer to that older version, and hence has complete history/ancestry/annotation available.