commit reverted changes and re-add .gitignore