mirror of
https://github.com/logos-co/logos-tutorial.git
synced 2026-08-30 20:31:06 +00:00
tutorial: add .gitignore before git add -A in step 3.1
Without a .gitignore, vendored C library binaries (lib/*.so, lib/*.dylib, lib/*.a) and the Nix result symlink get staged by git add -A. Add a .gitignore block to the tutorial so readers exclude them from the start. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
b2bdcfdaba
commit
410f4abb68
@@ -493,7 +493,25 @@ QString CalcModulePlugin::libVersion()
|
||||
|
||||
### 3.1 Initialize the Git repo
|
||||
|
||||
Nix flakes require a git repository:
|
||||
Nix flakes require a git repository.
|
||||
|
||||
Before staging files, create a `.gitignore` to exclude vendored binaries and build artifacts:
|
||||
|
||||
```
|
||||
# Vendored C library binaries (built by nix, do not commit)
|
||||
lib/*.so
|
||||
lib/*.dylib
|
||||
lib/*.a
|
||||
|
||||
# Nix build output
|
||||
result
|
||||
result-*
|
||||
|
||||
# CMake build directory
|
||||
build/
|
||||
```
|
||||
|
||||
Then initialise the repo:
|
||||
|
||||
```bash
|
||||
cd logos-calc-module
|
||||
|
||||
Reference in New Issue
Block a user