logo
GIT

Useful Git Commands

Discover essential Git commands every developer should know. Simplify your workflow with these powerful Git tips and tricks.

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

Share LinkedIn X
Written by

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.

Got queries? We have got you covered.

Take a free consultation. Tell us when to connect and we will be there.