Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

GIT - Cleaning ignored file when .gitignore added after changes

# Remove the files from the index (not the actual files in the working copy)
$ git rm -r --cached .

# Add these removals to the Staging Area...
$ git add .

# ...and commit them!
$ git commit -m "Clean up ignored files"
Comment

git remove ignored files

git rm --cached <file>
git rm -r --cached <folder>
Comment

PREVIOUS NEXT
Code Example
Shell :: linux get port usage 
Shell :: how to unistall and reinstall latest composer in mac 
Shell :: check firewall centos 7 
Shell :: check ubuntu disk space 
Shell :: how to uninstall pycharm community edition in ubutu 
Shell :: delete all local branches git 
Shell :: how to check spark version 
Shell :: uninstall tensorflow 
Shell :: ls show octal permissions 
Shell :: magento 2 check version command line 
Shell :: delete minikube linux 
Shell :: brew nmap install 
Shell :: ubuntu clean up disk space 
Shell :: public class FileProvider extends android.support.v4.content.FileProvider 
Shell :: update submodule github 
Shell :: public ip linux 
Shell :: apt see installed packages 
Shell :: chromium for mac 
Shell :: ubuntu 20.04 bluetooth not turning on or working 
Shell :: get docker id from name 
Shell :: change git url 
Shell :: pip3 uninstall all 
Shell :: install ionic globally 
Shell :: update kali 
Shell :: clean docker images and containers 
Shell :: generate service ionic 
Shell :: how to stop running port in ubuntu 
Shell :: how to install vlc in fedora 
Shell :: install jenkins on ubuntu 
Shell :: vim strip trailing whitespace from the end of every line 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =