Useful Git Commands

Useful Git Commands

Create New Branch and Switch to Branch
git checkout -b branch_name
Clean Cache for Untracked Files 
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
Clean All Untracked Directories 
git clean -f -d
Clean All Untracked Files 
git clean -f
Stage All Deleted Files 
git ls-files --deleted -z | xargs -0 git rm

    Leave a Reply