From d2b44bed00b2756b4fef7ab9cfafbb82f66e4036 Mon Sep 17 00:00:00 2001 From: Ancy1987 <58990707+Ancy1987@users.noreply.github.com> Date: Mon, 25 May 2020 16:14:33 +0530 Subject: [PATCH] Git clean commands added --- tools/git.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/git.sh b/tools/git.sh index 74c4d9e..0f32f4a 100644 --- a/tools/git.sh +++ b/tools/git.sh @@ -46,6 +46,11 @@ git stash branch my-branch stash@{1} # creates a branch from your stash git stash drop stash@{1} # deletes the {1} stash git stash clear # clears all the stash +git clean -f # clean untracked files permanently +git clean -f -d/git clean -fd # To remove directories permanently +git clean -f -X/git clean -fX # To remove ignored files permanently +git clean -f -x/git clean -fx # To remove ignored and non-ignored files permanently + .gitignore # is a file including names of stuff that you don"t want to be staged or tracked. # You usually keep your local files like database, media, and etc here.