Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts

Friday, September 12, 2014

.gitignore not working

I had run into a problem where Git seems to not ignore files specified in .gitignore file.

It seems that files that git knows about, it can't ignore, e.g. files that are created at the project creation.

To solve this problems, run the following commands in order

git rm -r --cached .

git add .

git commit -m ".gitignore is now working"

Saturday, November 9, 2013

Adding Git to Windows Path

This is under Windows 7, but it should work in a similar way for other versions.
  • Right-click on My Computer.
  • Click Advanced System Settings.
  • Click Environment Variables.
  • Under System Variables (or User Variables for ....), select PATH and click edit.
  • Add the following to the end of the line
      ;C:\Program Files\Git\bin;C:\Program Files\Git\cmd
 
This depends of course on where you have installed Git.
Then restart your command-line window.