git remove file from repo that has been added to gitignore
Commit any files that you need to change/delete to the repo. Then:
git rm -r --cached . # this will clean all files from cache. To clean a single file, exchange '.' with filename
git add . # add all of the now uncached files that are not gitignored to the staging area
git commit -m "fix .gitignore" # commit the changesgit ls-files --ignored --exclude-standard -z | xargs -0 git rm --cached
git commit -am "Remove ignored files"
// answer from: thSoft
Also in C++:
- powershell commands
- powershell command lock screen
- get match awk
- docker remove all images
- composer installed versions
- ubuntu add user to dailout
- insert bash command to docker-compose file
- codelyzer angular 10 install
- git commit --amend choose editor
- docker run npm install express syntax
- install php ubuntu 20.04
- react-router-breadcrumbs-hoc@^3.2.3 yarn upgrade
- parquet tools install mac
- how to show problem il linux or ubuntu
- sudo pip3 install
- set python3 as default mac
- deploy to firebase using trivis
- django rest framework
- install angular cli specific version
- convert vmdk to qcow2
- stop a service at startup linux amazon 2
- replace tab sed
- remove all docker images
- git delete local branch