class Git::Commands::Mv

Implements ‘git mv` to move or rename a file, a directory, or a symlink

The index is updated after successful completion, but the change must still be committed.

@example Move a single file

mv = Git::Commands::Mv.new(execution_context)
mv.call('old_name.rb', 'new_name.rb')

@example Move multiple files to a directory

mv = Git::Commands::Mv.new(execution_context)
mv.call('file1.rb', 'file2.rb', 'destination_dir/')

@example Force overwrite if destination exists

mv = Git::Commands::Mv.new(execution_context)
mv.call('source.rb', 'dest.rb', force: true)

@note ‘arguments` block audited against git-scm.com/docs/git-mv/2.53.0

@see git-scm.com/docs/git-mv git-mv

@see Git::Commands

@api private