how to undo git add before commit [duplicate] September 22, 2023 by Tarik git reset is a literally “undo” of git add – it removes the changes from staged area.