Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: core.excludesfile .gitignore (file) support #1160

Open
hakre opened this issue May 11, 2022 · 1 comment
Open

Enhancement: core.excludesfile .gitignore (file) support #1160

hakre opened this issue May 11, 2022 · 1 comment
Labels
kind/feature-request New feature or request

Comments

@hakre
Copy link

hakre commented May 11, 2022

Describe feature

the git (config) core.excludesfile sets a user-wide core ".gitignore" that applies to all projects.

currently act's .gitignore feature does not take it into account, paths ignored by it are copied into the container.

Backgound: core.excludesfile git-config Setting

from the git-book (Customizing Git Configuration):

core.excludesfile
You can put patterns in your project’s .gitignore file to have Git not see them as untracked files or try to stage them when you run git add on them, as discussed in Ignoring Files.

But sometimes you want to ignore certain files for all repositories that you work with. If your computer is running macOS, you’re probably familiar with .DS_Store files. If your preferred editor is Emacs or Vim, you know about filenames that end with a ~ or .swp.

This setting lets you write a kind of global .gitignore file. If you create a ~/.gitignore_global file with these contents:

*~
.*.swp
.DS_Store

…and you run git config --global core.excludesfile ~/.gitignore_global, Git will never again bother you about those files.

another reference is core.excludesFile on the git-config(1) page:

core.excludesFile
Specifies the pathname to the file that contains patterns to describe paths that are not meant to be tracked, in addition to .gitignore (per-directory) and .git/info/exclude. Defaults to $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/ignore is used instead. See gitignore[5].

act's .gitignore feature

(report backstory: #1158)

@hakre hakre added the kind/feature-request New feature or request label May 11, 2022
@grigorye

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants