Open spenserblack opened 1 year ago
This is supported in my experiment here! https://github.com/Andrew-Chen-Wang/github-wiki-action/tree/jcbhmr
I use:
echo "$INPUT_IGNORE" >>"$GIT_DIR/info/exclude"
where
- uses: action/action@v1
with:
ignore: |
file.cpp
*.test.md
*.json
!package.json
Interesting! So .git/info/exclude
is effectively identical to .gitignore
? Negating matches, etc.?
it seems like .git/info/exclude
is your own custom .gitignore that's specific to your project. Sort of like the ~/.gitignore
or whatever you set your global .gitignore to, but on a per-project level. It doesn't get synced up with the remotes, so you can:
But, sometimes you just with that git stop showing you that file you had to change for some reason we are not here to discuss.
https://luisdalmolin.dev/blog/ignoring-files-in-git-without-gitignore/
Random idea I had in https://github.com/spenserblack/actions-wiki/discussions/46#discussioncomment-5405598
Possibly implementations:
with:
input (ignorelist format?)wikiignore
)Workarounds: A
.gitignore
in the wiki folder, combined with force-added files viagit add -f path/to/wiki/file
, should track the files in the repo, but ignore them when pushing to the repo. Untested.