![Useful Git Commands](https://provistechnologies.com/blog/wp-content/uploads/2020/05/Git-1024x483-1.jpg)
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
Written by Anish Ojha on
Anish Ojha
For the past 8 years, he has been engaging with clients and potential clients to enable business transformation. He is committed to building a reputation for quality and delivery for our clients while building a strong technical and social culture within the company.
All posts by Anish Ojha