Useful Git Commands

Anish Ojha ·

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

Post Author Profile Image

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

Add Comment

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