mirror of
https://github.com/RGBCube/Site
synced 2025-07-29 12:07:47 +00:00
blog.gitignore: update gitignore example
This commit is contained in:
parent
2f0551c767
commit
16601d0ffb
2 changed files with 10 additions and 6 deletions
|
@ -98,18 +98,21 @@ You change your gitignore to this:
|
|||
|
||||
!.gitignore
|
||||
|
||||
!src/*.rs
|
||||
# whitelist `src` directories and their children, regardless of place
|
||||
!src/**/
|
||||
!src/**/*.rs
|
||||
!Cargo.{toml,lock}
|
||||
|
||||
!pysrc/*.py
|
||||
# whitelist root `pysrc` directory
|
||||
!/pysrc/*.py
|
||||
!pyproject.toml
|
||||
!poetry.lock
|
||||
|
||||
!cmd/*.go
|
||||
!/cmd/*.go
|
||||
!main.go
|
||||
!go.{mod,sum}
|
||||
|
||||
!docs/*.md
|
||||
!/docs/*.md
|
||||
```
|
||||
|
||||
Now, nobody can accidentally commit undesired files, as git automatically
|
||||
|
|
|
@ -26,8 +26,9 @@ Oops (from the `tree`version 2.0.2 release notes):
|
|||
> the environment variable STDDATA_FD is present or set to the descriptor to
|
||||
> produce the JSON output on.
|
||||
|
||||
Unix is a mess. But it's still cool we can have `tree` output structured data
|
||||
using `STDDATA_FD`:
|
||||
Assuming anything about the users environment is and will always be a mistake.
|
||||
But it's still cool we can have `tree` output structured data using
|
||||
`STDDATA_FD`:
|
||||
|
||||
```json
|
||||
> STDDATA_FD=1 tree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue