Reprinted from: https: //blog.csdn.net/weixin_42808389/article/details/81232119
When using KEIL 5 (MDK ARM) development project management code need to use GIT, MDK project generated for intermediate file, does not require control by the file management .gitignore ignore records text file types.
In general, .c .h, * .cpp must control, the other as the case may decide to ignore the file operation. Online copy of the template, with appropriate modifications, save the file to .gitignore.
!*.c
!*.h
!*.cpp
*.log
*.plg
*.bak
*.dep
*.uvgui.*
JLinkLog.txt
*.o
*.d
*.crf
*.tra
*.axf
*.hex
*.lnp
*.sct
*.__i
*.htm
There is a relatively small operation, is revised and .gitignore and commit later found that also need to add certain file types to be ignored. Then need to do the following:
vi .gitignore increase ignore new files
git the Add .gitignore
git RM -cache -r <ignore the new file>
git the commit -m
-------------- -
Disclaimer: this article is CSDN blogger original article "weixin_42808389", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/weixin_42808389/article/details/81232119