Files that should be put under source control

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Files that should be put under source control

ソリューションへジャンプ
1,020件の閲覧回数
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 解決策
999件の閲覧回数
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 返信
1,000件の閲覧回数
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 件の賞賛
返信