how to delete unstaged files that were recently added locally
# Print out the list of files which will be removed (dry run)
git clean -n
# Interactive and you will get a quick overview of what is
# going to be deleted offering you the possibility to include/exclude
# the affected files
git clean -i
# To remove files, run
git clean -f
# To remove directories, run
git clean -fd
# To remove ignored files, run
git clean -fX
# To remove ignored and non-ignored files, run
git clean -fxgit clean -fdxgit clean -ngit clean -fTo see what files will be removed:
git clean -n <optional file_name/dir>
To actually delete those files:
git clean -f <optional file_name/dir>
Also in C++:
- new terminal tab in linux
- debian install java
- vscode install commandline
- You need to have the Android SDK Build-tools installed on your system
- git bash alias commands
- terminal show running processes tree mac os
- git merge by ssh key
- Unable to find a valid SQLite command
- history delete
- install wsl kali linux desktop
- git fetch prune
- how to clone all git repositories
- linux find files ending with
- git diff current repo and other branch
- linux startup script
- shut down instantly on linux
- sbt scala install ubuntu
- ubuntu remove cuda
- install atom ubuntu terminal
- ip info on ubuntu
- how to change mac address kali linux
- cannot be loaded because running scripts is disabled on this system
- awk use string as field separator
- gitlab clone branch