Create gitignore from File Explorer

Story by Abhilash on GIT


It's quite common that you might want to create a new .gitignore file in one of your nested folders to have better control on the files to be included or excluded. If you try to create the file straightaway, the windows explorer won't allow you to do that. Then how can you do that? Here are the steps:

  1. Browse to the target folder
  2. Right-click -> New -> Text Document
  3. Rename file name as - '.gitignore.' (note the Period in the end)
  4. You might get a prompt for file rename, select Yes

And, you are done. Hope this helps.

comments powered by Disqus

Related Story   →

Fix: HTML5 Video not playing when deployed to azure

A post on how to playback HTML5 video when published to Azure.