git how to remove files after using git add code example
Example 1: unstage staged files git
git reset HEAD file_path
Example 2: how to unadd gitr file
git reset HEAD myfile.txt
git reset HEAD file_path
git reset HEAD myfile.txt