Files that should be put under source control

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Files that should be put under source control

Jump to solution
99 Views
ygao
Contributor I

Hi,

I would like to put my project under git repository. The project is created using MCUXpresso IDE. There are a lot of built output files, automatically generated files that should not be put into source control. My question is: is there a list of files that should be put under source control? Or is there a list of files that should not be put under source control?

Regards,

Yan

Labels (1)
0 Kudos
1 Solution
78 Views
HangZhang
NXP Employee
NXP Employee

Hi @ygao 

There isn't a universal list of files that should be put under source control or not, as it depends on the specific project requirements and development environment. However, you can use .gitignore file to specify which files or directories Git should ignore.

Here is an example of how you might set up your .gitignore file for an MCUXpresso IDE project:

# Ignore built output files
*.o
*.a
*.axf
*.map

# Ignore automatically generated files
*~.nib
local.properties
.classpath
.project
.settings/
bin/
tmp/
*.tmp
*.bak
*.swp
*~.mcj
gen/
*.dblite

# Ignore MCUXpresso IDE specific files
*.ewp
*.eww
*.dep

This will ignore all object files (*.o), static libraries (*.a), binary files (*.axf), memory map files (*.map), nib files (*~.nib), local properties file (local.properties), classpath file (.classpath), project file (.project), settings directory (.settings/), bin directory (bin/), tmp directory (tmp/), temporary files (*.tmp), backup files (*.bak), swap files (*.swp), mcj files (*~.mcj), gen directory (gen/), dblite files (*.dblite), and MCUXpresso IDE specific files (*.ewp, *.eww, *.dep).

Please adjust this list according to your project needs.

Hope this will help you.

BR

Hang

View solution in original post

0 Kudos
1 Reply
79 Views
HangZhang
NXP Employee
NXP Employee

Hi @ygao 

There isn't a universal list of files that should be put under source control or not, as it depends on the specific project requirements and development environment. However, you can use .gitignore file to specify which files or directories Git should ignore.

Here is an example of how you might set up your .gitignore file for an MCUXpresso IDE project:

# Ignore built output files
*.o
*.a
*.axf
*.map

# Ignore automatically generated files
*~.nib
local.properties
.classpath
.project
.settings/
bin/
tmp/
*.tmp
*.bak
*.swp
*~.mcj
gen/
*.dblite

# Ignore MCUXpresso IDE specific files
*.ewp
*.eww
*.dep

This will ignore all object files (*.o), static libraries (*.a), binary files (*.axf), memory map files (*.map), nib files (*~.nib), local properties file (local.properties), classpath file (.classpath), project file (.project), settings directory (.settings/), bin directory (bin/), tmp directory (tmp/), temporary files (*.tmp), backup files (*.bak), swap files (*.swp), mcj files (*~.mcj), gen directory (gen/), dblite files (*.dblite), and MCUXpresso IDE specific files (*.ewp, *.eww, *.dep).

Please adjust this list according to your project needs.

Hope this will help you.

BR

Hang

0 Kudos