Help with gitignore #351
-
|
I have a repo structure that looks like this I want to keep the My workflow that tries to commit this - uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: _cite/.cache/cache.db
commit_message: "Commit cache"But I get the error: This is probably more of a git question than a question specifically with this action. But perhaps it has to do with the specific git commands called in this action, because locally, my gitignore pattern seems to correctly add/ignore the proper files, and never throws such an error when adding/committing/pushing. Any ideas, besides using the "force" flag as it suggests? Could the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
This is truly more of a In a local test-repo specifying the full path of the File inside
|
Beta Was this translation helpful? Give feedback.
This is truly more of a
git-question. :)In a local test-repo specifying the full path of the
cache.dbfile in.gitignorehelped.File inside
.cachewere still ignored butcache.dbis detected and can be committed.Can you give this a try? Setting the full path in
.gitignore.disable_globbingwouldn't really help here. It runsset -o noglob;in the bash script and prevents strings likefile_pattern: '*.md'from being expanded to a list of files.