unstage files git code example
Example 1: git unstage file for commit
git reset myfilename.txt
Example 2: how to unstage a commit
git reset HEAD~
Example 3: git unstage file\
# unstage file before commit
git rm --cached <file_name>
Example 4: unstage particular file git
git reset HEAD <file>
Example 5: Why are there two ways to unstage a file in Git?
git rm --cached <filePath>
Example 6: git unstage
rit reset config.json