TortoiseGit: add to ignore already commited gen and bin folder

git, gitignore, tortoisegit

Solution

For untracking + ignoring files, you do:

$ git rm -r --cached gen/ bin/
$ echo "gen/" >> .gitignore
$ echo "bin/" >> .gitignore

`git rm --cached` removes the file from the index, without changing the file in the working copy. So now git doesn't track it, but you still have it in your local folder.

Problem

How to add to ignore list already commited gen and bin folder using TortoiseGit?

Original source