Create a .gitignore through Windows Explorer
If you've tried to create a .gitignore
in Windows Explorer, then you probably encountered this error:
To get around it, follow these steps:
- Right click in the explorer to access the context menu.
- New -> Text Document
- Name the file
.gitignore.
Notice the period at the end - Accept the warning about changing the file name extension.
- Windows will now name the file
.gitignore
Thank you to Diary of a Ninja for showing me this work around.
Written by Mike Kusold
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#