change gitignore into the right directory