Mahesh N Mahesh N - 1 year ago 148
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

Answer Source


  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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download