How to Undo 'Git Add': Reverting Staged Files Before Commit : A Step-by-Step Guide
In Git, the git add command stages changes for a commit, but if you mistakenly add files or reconsider their inclusion, Git offers a straightforward method to unstage these files.