Joined July 2012
·

Gianfranco Palumbo

Dublin, Ireland
·
·
·

Posted to Remove .gitignore'd files over 1 year ago

Note that this will remove the files from the file system, not from git tracked repository.

If you want to remove files from the git repository which are .gitignore'd (technically: to unstage and remove paths only from the index) you can run this command:

git rm --cached `git ls-files -i --exclude-from=.gitignore`

And tun this command to see first which files will be removed from repository:
git ls-files -i --exclude-from=.gitignore

Achievements
54 Karma
373 Total ProTip Views
Interests & Skills