rename commanda file code example Example 1: git rename file $ git mv old_filename new_filename Example 2: bash rename file mv oldname newname