Mahesh N Mahesh N - 2 months ago 13
Git Question

How to setup .gitignore for Windows?

I am setting up my first project in Git. How do I setup

git-ignore
file in Windows?

I am creating my first Rails project using Vagrant and trying to configure
.gitignore
in Windows

Answer

Easy.

  1. Make a file .gitignore using your text editor
  2. In there, write the file name you'd want to ignore
  3. You can use wildcard like: *.pyc ignoring any file with extension .pyc

If you use TortoiseGit or other Git software, it will be easier. There will be add to ignore list menu when you right click to a file.