Add the file names β or wild cards for the file names β to the .gitignore file and add them to the repository:
git add .gitignore git commit -m 'Added .gitignore file'
For example, for my Go repository, I have a .gitignore file containing:
*.o *.a *.so *.pl *.6 *.out _obj/ _cgo_defun.c _cgo_export.c _cgo_export.h _cgo_gotypes.go *.cgo1.go *.cgo2.c example/example ifix1/esqlc-cmds.c
I have to compress the names ' _cgo_ ' with a wild card; another .c 'file is created from the .ec file, so it does not need to be tracked.
Jonathan Leffler May 05 '10 at 15:14 2010-05-05 15:14
source share