Can you create a .gitignore file in a directory that only applies to files (and directories) within that directory?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- What is the tortoisehg gui equivalent of doing “hg
- How to use Mercurial from Visual Studio 2010?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is it possible to do a “destroy history” in TFS?
- Is there a version control system abstraction for
Yes, you can. Try it, it works fine. Put a
.gitignore
in the root of your repo, and put another.gitignore
with additional things to ignore in a subdirectory.You can just specify files to ignore in a format such as
in the .gitignore in the root directory, potentially removing the need for separate ignore files.
Similar question was: Are multiple `.gitignore`s frowned on? (Jul 2010)
Or if you can have different version of a
.gitignore
file per branch: Using github to host public git repositories whilst ensuring that sensitive data files remain untracked (Feb 2010)Further perhaps related: How do I tell git to always select my local version for conflicted merges on a specific file?