Useful Git Commands
Discover essential Git commands every developer should know. Simplify your workflow with these powerful Git tips and tricks.
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