
% git clean
fatal: clean.requireForce defaults to true
and neither -i, -n, nor -f given; refusing to clean
You will get this error when you try to clean your git local working directory if,
- You have set the clean.requireForce value as false in the .gitconfig local/global file, or,
- You have not set clean.requireForce in the .gitconfig local/global file.
- Set clean.requireForce as true in the config file.
- execute: git clean -n : to just tell which all files will be cleaned (dry run)
- execute: git clean -i : to get into interactive mode.
- execute: git clean -f: To force clean (overrides whats set in config file)
$ git clean -i
Would remove the following item:
d.txt
*** Commands ***
1: clean 2: filter by pattern 3: select by numbers
4: ask each 5: quit 6: help
What now> c
Removing d.txt
- [Fixed] Git Clone git@github.com: Permission denied (publickey) Could not read from remote repository Fatal error
- Github: How to Invite Collaborators
- Git Commit - Author identity unknown, Please tell me who you are email
- [Solution] fatal: not a git repository (or any of the parent directories): .git
- [fix] zsh: command not found: git
- Github: fatal: Authentication failed Support for password was removed on August 13, 2021
- Get List of all local branches git command
- Git Revision Questions Before the Interview
- git fatal: Authentication failed error [fix]
- How to Install Git on Ubuntu Linux
- GitHub: How to Search Code
- How to change Git Default Author and Committer details in Eclipse
- How to check your installed version of Git
- Install GitHub Command Line Tool on Mac
- How to Merge Branch into Master Branch
- Perform an Empty Commit in Git without anything in Staging Area
- Git Fix: fatal: refusing to merge unrelated histories Error
- How to undo last Git Commit on Local Repository?
- git command to remove/unstage files from staging area
- Step-by-Step: Setting up Docker + Ubuntu Linux + Git + GitHub Tutorial
- Remove git config at Local, Global or System Levels?
- Fix [oh-my-zsh] Cant update: not a git repository
- Git Config Command - A Deep Dive
- fatal: Unable to create '/c/git_repo/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier.
- How to change directory in Git bash
- Error code 0xCAA82EE2: Something went wrong (request timed out) [Microsoft] - Microsoft
- Struts 2 : There is no Action mapped for namespace [/] and action name [form] associated with context path [/proj] - Java
- Customize Praise badge for Microsoft Teams with own images, values, brand - Microsoft
- INSTALL_FAILED_INSUFFICIENT_STORAGE Error Android Emulator - Android
- remove div vertical scroll - Html
- Select Line Number TextEdit on Mac - MacOS
- [fix] fatal: pathspec index.html did not match any files error - Git
- How to extract Java Jar/War/Ear files in Linux - Java