what happens in git when a file is renames code example Example: git rename file $ git mv old_filename new_filename