Forrest logo
back to the git tool

git-mr:tldr:1efed

git-mr: Clean up old merge request branches.
$ git mr clean
try on your machine

The command "git mr clean" is not a valid Git command. "git clean" is a valid Git command, so if there was a typo in the command, it might be "git clean" instead.

The "git clean" command is used to remove untracked files from a Git repository. It is commonly used to clean up the working directory by removing files that are not being tracked by Git.

When you run "git clean" without any options, it will only remove files that are not being tracked by Git. It will not remove any ignored files or directories. By default, it will not remove directories. You can use the "-d" option to also remove untracked directories.

It is important to use caution when running "git clean" as it permanently deletes untracked files. It is recommended to use the "-n" (dry run) option to preview which files will be deleted before actually running the command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool