Mahesh N Mahesh N - 7 months ago 52
Git Question

How to setup .gitignore for Windows?

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

file in Windows?

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



  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.