Remove all added files with
git rm --cached
Then add them to the gitignore file. Example:
# git ignore file
# comments start with hash
# ignore all object files, all
# files ending either with '.o' or '.a'
*.[oa]
# Ignore all files with
# the extension *.swp
*.swp
# Ignore a single file
/folderA/folderB/build.info
# Ignore a folder named
# temporary in the base folder.
/temporary/
# Ignore folders named _object
# anywhere inside the project.
_object/
No comments:
Post a Comment