git unstage all code example
Example 1: delete all local branches git
$ git branch | grep -v "master" | xargs git branch -D
Example 2: how to unstage changes in git
#unstage a single file
git rm --cached <filePath>
#unstage all staged files
git reset
Example 3: git undo all changes
git reset --hard
Example 4: git unstage file for commit
git reset myfilename.txt
Example 5: unstage staged files git
git reset HEAD file_path