设置git忽略编译产物
1.
$ git status
On branch dev
Your branch is ahead of 'origin/dev' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: apps/bylesdk/byle_kws_app/Byle_build_pre.bat
modified: build/fileList.mk
modified: build/include_dir.mk
modified: build/include_lib.mk
deleted: byletools/br28loader.bin
modified: byletools/byle_ota_package.bin
modified: byletools/download_byle.bat
modified: byletools/output_byle.bat
modified: byletools/sdk.lst
modified: byletools/symbol_tbl.txt
modified: cpu/br28/sdk.ld
modified: cpu/br28/sdk_used_list.used
2.
$ git rm --cached byletools/br28loader.bin
git rm --cached byletools/byle_ota_package.bin
git rm --cached byletools/download_byle.bat
git rm --cached byletools/output_byle.bat
git rm --cached byletools/sdk.lst
git rm --cached cpu/br28/sdk.ld
rm 'byletools/br28loader.bin'
rm 'byletools/byle_ota_package.bin'
rm 'byletools/download_byle.bat'
rm 'byletools/output_byle.bat'
rm 'byletools/sdk.lst'
rm 'cpu/br28/sdk.ld'
3.
$ git status
On branch dev
Your branch is ahead of 'origin/dev' by 1 commit.
(use "git push" to publish your local commits)
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: byletools/br28loader.bin
deleted: byletools/byle_ota_package.bin
deleted: byletools/download_byle.bat
deleted: byletools/output_byle.bat
deleted: byletools/sdk.lst
deleted: cpu/br28/sdk.ld
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: apps/bylesdk/byle_kws_app/Byle_build_pre.bat
modified: build/fileList.mk
modified: build/include_dir.mk
modified: build/include_lib.mk
modified: byletools/symbol_tbl.txt
modified: cpu/br28/sdk_used_list.used
4.
$ git rm --cached apps/bylesdk/byle_kws_app/Byle_build_pre.bat
git rm --cached build/fileList.mk
git rm --cached build/include_dir.mk
git rm --cached build/include_lib.mk
git rm --cached byletools/symbol_tbl.txt
git rm --cached cpu/br28/sdk_used_list.used
rm 'apps/bylesdk/byle_kws_app/Byle_build_pre.bat'
rm 'build/fileList.mk'
rm 'build/include_dir.mk'
rm 'build/include_lib.mk'
rm 'byletools/symbol_tbl.txt'
rm 'cpu/br28/sdk_used_list.used'
5.
$ git add .gitignore
git commit -m "Update .gitignore and stop tracking build artifacts"
[dev 28987c4] Update .gitignore and stop tracking build artifacts
13 files changed, 7 insertions(+), 551814 deletions(-)
delete mode 100644 apps/bylesdk/byle_kws_app/Byle_build_pre.bat
delete mode 100644 build/fileList.mk
delete mode 100644 build/include_dir.mk
delete mode 100644 build/include_lib.mk
delete mode 100644 byletools/br28loader.bin
delete mode 100644 byletools/byle_ota_package.bin
delete mode 100644 byletools/download_byle.bat
delete mode 100644 byletools/output_byle.bat
delete mode 100644 byletools/sdk.lst
delete mode 100644 byletools/symbol_tbl.txt
delete mode 100644 cpu/br28/sdk.ld
delete mode 100644 cpu/br28/sdk_used_list.used
$ git status
On branch dev
Your branch is ahead of 'origin/dev' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
浙公网安备 33010602011771号