Hello everyone!
I want to create a github repository where I’ll be collecting code snippets with extra comments. The problem becomes in keeping firmware files with .gitignore file.
The repository folder structure is:
.gitatributes
.gitignore
README.MD
code snippets (folder which contains the individual projects)
* 00. Blink
* 01. Buttons
* …
* etc
The content of of my .gitignore file is:
**/.pioenvs
**/.pio
**/.piolibdeps
**/.gitignore
**/test
**/.travis.yml
**/.vscode/extensions.json
**/.vscode/settings.json
*/.vscode/.browse.c_cpp.db
**/.vscode/c_cpp_properties.json
**/.vscode/launch.json
**/.vscode/extensions.json
**/include/README
**/lib/README
The compiled firmware is created as “firmware.bin” file in subfolder (subfolder has a name of used dev-board) of .pioenvs folder. How to keep it?
I tried several options:
!/.pioenvs/*/firmware.bin
!/.pioenvs//firmware.bin
!//.pioenvs//firmware.bin
!//.pioenvs/*/firmware.bin
No reseults. Is there a way to keep the firmware file?