Is it possible to have a custom .gitignore? Read only access? January 29, 2023 by Tarik Put your private ignore rules in .git/info/exclude. See gitignore(5). For read-only access, use git-daemon, a web server, or Gitosis, or Gitolite.