Git Cheatsheet

* shows all settings
git config --list

* shows system settings
git config --list --system

* shows user settings
git config --list --global

* shows project settings
git config --list --local

* Clean Local Workspace dry run
git clean -n 

* Clean local workspace force untracked file deletion
git clean -f

* Clean local workspace force untracked file deletion and remove directories
git clean -f -d

* Clean local workspace to remove untracked .gitignore files
git clean -f -x 

Leave a Reply

Your email address will not be published. Required fields are marked *