I am just starting indexing files in a new repository. I ran git add . and all files were added. After pushing them I noticed a hook was not working. I’d like to do git add . again to push the same files, again. But clearly git add . does not add anything new. What is the proper way of resetting the index to nothing so everything gets added again?
I am just starting indexing files in a new repository. I ran git add
Share
If your goal is to re-run git post-commit hook, just add some small commit (update indentation in README or something) and push to the repo again.