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
Solved! Go to Solution.
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
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