We have the ctemplate library included in our git-managed project which is based on GNU Autoconf.
I would like to put everything which is generated by Autoconf into the .gitignore file to avoid conflicts if someone accidentally commits his platform-specific generated files.
Can someone tell me how to figure out the complete list of files autoconf generates/modifies for all platforms (Mac, Ubuntu, CentOS, etc.)?
gitignore file is usually placed in the root directory of a project. You can also create a global . gitignore file and any entries in that file will be ignored in all of your Git repositories.
Open Visual Studio and the solution needing an ignore file. From the top menu select Git > Settings. The above will open Visual Studio's Options with Source Control > Git Global Settings selected. From the list on the left select Git Repository Settings and then click the Add button for Ignore file.
Here is what I have in my various .gitignore
(on Debian testing):
Shared library: (libtool)
/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache/
/config.*
/configure
/depcomp
/install-sh
/libtool
/ltmain.sh
/m4/
/missing
/stamp-h?
.deps/
.dirstamp
.libs/
*.l[ao]
*~
Executable:
/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache/
/config.*
/configure
/m4/
/stamp-h?
.deps/
.dirstamp
*.o
*~
You may want to adapt this a bit, but this is the bulk of it. make dist-clean
followed by commit, rebuild, and finally git status
may show you new files though, depending on what exactly your build generates.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With