how to git add a file name change code example Example: git rename file $ git mv old_filename new_filename