-1

I could use the git mv file directory to move the file to a directory. But the same can
be achieved by using the Linux command mv. Is there any difference between these two?
Does it matter if I move a file using the git mv or mv command?

dnaiel
  • 407
  • 7
  • 13

1 Answers1

0

git mv automatically stages the moved file, so a simple git commit will suffice after your move or rename is complete.

Reference the article at for more information. https://initialcommit.com/blog/git-mv

nbstrat
  • 108
  • 6