I found a *.md~
in my gitignore and can't remember when/why I added it. Of course googling "*.md~" is useless (I know .md is used for markdown files, but the tilde is what I'm curious about). Is this a temp file Vim generates or something?
Asked
Active
Viewed 1,229 times
0

ivan
- 6,032
- 9
- 42
- 65
-
How is this programming-related? – Nic Jan 13 '15 at 22:06
-
possible duplicate of [What file uses .md extension and how should I edit them?](http://stackoverflow.com/questions/5922882/what-file-uses-md-extension-and-how-should-i-edit-them) – mleko Jan 13 '15 at 22:50
2 Answers
1
.md
file type stands for markdown. It's usually used for README.md
on github.
See: What file uses .md extension and how should I edit them?
1
Files with the ~
(tilde) suffix are usually a backup of the previous file before your text editor saved a new version. Some text editors do this, and others don't. By default vim does.
You don't want to commit backup files into git (that's the reason for using source control!), which is why you have the *.md~
in gitignore. Although I would suggest having something like *~
to exclude all backup files if your text editor creates copies of files when saving.

eyesnz
- 2,698
- 2
- 16
- 27