add a gitignore file, capture the last symbol