Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Ignore files that have already been committed to Git

If you need to stop tracking a lot of ignored files, you can combine some commands:

git ls-files -i --exclude-standard | xargs -L1 git rm --cached

This would stop tracking the ignored files. If you want to actually remove files from filesystem, do not use the --cached option. You can also specify a folder to limit the search, such as:

git ls-files -i --exclude-standard -- ${FOLDER} | xargs -L1 git rm
Comment

Ignore files that have already been committed to a Git repository

git rm -r --cached .
git add .
Comment

PREVIOUS NEXT
Code Example
Shell :: how to uninstall oh my zsh 
Shell :: remove mongodb from mac 
Shell :: error: cannot open .git/FETCH_HEAD: Permission denied 
Shell :: yarn start --reset-cache expo 
Shell :: how to check if mysql is installed ubuntu 
Shell :: install vscode using apt 
Shell :: update cocoapods version mac 
Shell :: how to remove samba ubuntu 
Shell :: certbot remove domain 
Shell :: could not find a version that satisfies the requirement psycopg2 
Shell :: remove nginx mac 
Shell :: ubuntu install matplotlib 
Shell :: install python3-pip ubuntu 
Shell :: conda install speechrecognition 
Shell :: commit no verify 
Shell :: instal screen di linux 
Shell :: how to find installed packages in ubuntu 
Shell :: macos install chromium 
Shell :: disable cloud-init ubuntu 
Shell :: git reinitialized existing git repository 
Shell :: git update remote origin 
Shell :: I can not access my local files in Ubuntu 
Shell :: ionic cli 
Shell :: kill logstash 
Shell :: delete all docker images 
Shell :: mac check shell version 
Shell :: ubuntu stop process on port 
Shell :: install tweepy 
Shell :: add to docker group 
Shell :: vim strip trailing whitespace 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =