As developers, we’ve all experienced the moment when we accidentally add a file to the staging area using ‘git add’…