0

I started by creating a new file, then manually moving it, and then modifying it. It's both a new and removed file, according to Git. Is there a way to make Git handle it like a file transfer?

SwissCodeMen
  • 4,222
  • 8
  • 24
  • 34
  • 1
    Did you create a commit? – Isma May 30 '21 at 09:13
  • 1
    Yes... I did. i was create – Menisha Myelwaganam May 30 '21 at 09:24
  • Possible duplicate of How to make git mark a deleted and a new file as a file move? –  May 30 '21 at 09:25
  • 1
    Git does not store "moves" nor "copies". You can try playing around witth `-C` and `-M` flags (copy and rename detection). See also [How to make git mark a deleted and a new file as a file move?](https://stackoverflow.com/questions/433111/how-to-make-git-mark-a-deleted-and-a-new-file-as-a-file-move) – knittl May 30 '21 at 09:35

0 Answers0