Skip to content

Commit

Permalink
git: ignore vim swap files
Browse files Browse the repository at this point in the history
  • Loading branch information
compnerd authored and jgm committed Dec 29, 2023
1 parent 7c67921 commit 02ca61e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

*~
*.bak
*.sw?
*.diff
*#
*.zip
Expand Down

2 comments on commit 02ca61e

@nwellnhof
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thnigs like this really belongs in the user's global .gitignore file.

@jgm
Copy link
Member

@jgm jgm commented on 02ca61e Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know you could have a global .gitignore file! I tend to agree, then.
https://gist.github.com/subfuzion/db7f57fff2fb6998a16c
"But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process."

Please sign in to comment.