Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

This is what I have so far:

obj/
bin/

Anything else?

like image 571
Mode77 Avatar asked Mar 07 '23 07:03

Mode77


2 Answers

You can use this:

*.layout
*.depend
bin/
obj/

See: https://www.gitignore.io/api/codeblocks

like image 183
Viacheslav Shalamov Avatar answered Apr 28 '23 03:04

Viacheslav Shalamov


GitHub has some gitignore files to get a project started. For a C++-Project they have the following .gitignore file: (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

You can find the whole repository with many other languages here: https://github.com/github/gitignore

like image 20
rollstuhlfahrer Avatar answered Apr 28 '23 03:04

rollstuhlfahrer