什么是与 Codeblocks C++ 项目一起使用的好 gitignore?

What is a good gitignore to use with Codeblocks C++ Projects?

这是我目前拥有的:

obj/
bin/

还有什么吗?

你可以使用这个:

*.layout
*.depend
bin/
obj/

参见: https://www.gitignore.io/api/codeblocks

GitHub 有一些 gitignore 文件来启动项目。对于 C++ 项目,他们有以下 .gitignore 文件:(C++.gitignore)

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

您可以在这里找到包含许多其他语言的整个存储库:https://github.com/github/gitignore