Forrest logo
back to context overview

git-clean

List of commands for git-clean:

  • git-clean:tldr:16596 git-clean: Show what files would be deleted without actually deleting them.
    $ git clean --dry-run
    try on your machine
    explain this command
  • git-clean:tldr:42f67 git-clean: Delete files that are not tracked by Git.
    $ git clean
    try on your machine
    explain this command
  • git-clean:tldr:4ffea git-clean: Forcefully delete files that are not tracked by Git.
    $ git clean -f
    try on your machine
    explain this command
  • git-clean:tldr:a0972 git-clean: Delete untracked files, including ignored files in `.gitignore` and `.git/info/exclude`.
    $ git clean -x
    try on your machine
    explain this command
  • git-clean:tldr:cc20f git-clean: Forcefully delete directories that are not tracked by Git.
    $ git clean -fd
    try on your machine
    explain this command
  • git-clean:tldr:ce0c8 git-clean: Interactively delete files that are not tracked by Git.
    $ git clean -i
    try on your machine
    explain this command
back to context overview