Skip to content

Commit ff9248a

Browse files
authored
Prefer to reference git's default configuration, not bespoke
Prefer references to git's default configuration, rather than encouraging customized configurations. `git config core.excludesFile` defaults to `${XDG_CONFIG_HOME:-~/.config}/git/ignore`. This updates the .gitignore template to suggest the default location for git's global gitignore rather than a customized location.
1 parent 931c5ef commit ff9248a

File tree

1 file changed

+3
-3
lines changed
  • railties/lib/rails/generators/rails/app/templates

1 file changed

+3
-3
lines changed

railties/lib/rails/generators/rails/app/templates/gitignore.tt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
22
#
3-
# If you find yourself ignoring temporary files generated by your text editor
4-
# or operating system, you probably want to add a global ignore instead:
5-
# git config --global core.excludesfile '~/.gitignore_global'
3+
# Temporary files generated by your text editor or operating system
4+
# belong in git's global ignore instead:
5+
# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`
66

77
# Ignore bundler config.
88
/.bundle

0 commit comments

Comments
 (0)