Files that should be put under source control

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Files that should be put under source control

跳至解决方案
1,000 次查看
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

标签 (1)
0 项奖励
回复
1 解答
979 次查看
Harry_Zhang
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 项奖励
回复
1 回复
980 次查看
Harry_Zhang
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 项奖励
回复