title: How to create a .gitignore file in Windows 10
body: <p>I tried to create a .gitignore file in my repository's root directory with the command</p>
  
  <pre><code>$ touch .gitginore
  </code></pre>
  
  <p>in Git Bash.</p>
  
  <p><a href="https://i.stack.imgur.com/MzsZh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MzsZh.jpg" alt="Enter image description here"></a></p>
  
  <p>But when I looked at the file from the Windows&nbsp;Explorer. It says it's a text document. Isn't it supposed to be of the type <code>File</code>?</p>
  
  <p><a href="https://i.stack.imgur.com/zl2nC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zl2nC.jpg" alt="Enter image description here"></a></p>