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

delete all git ignored files

git clean -dfX
Comment

PREVIOUS NEXT
Code Example
Shell :: change default branch github 
Shell :: update path variable mac 
Shell :: install grammarly on mac brew 
Shell :: git pull sith ssh key 
Shell :: how to boot into bios dell 
Shell :: link local to remote git 
Shell :: How to install pymol 
Shell :: git checkout 
Shell :: install aws cli v2 
Shell :: [INS-30131] Initial setup required for the execution of installer validations failed. 
Shell :: how to get the files using the most storage ubuntu 
Shell :: linux cli see screen resolution 
Shell :: run speedtest command line mac 
Shell :: install maven dependencies 
Shell :: reinstall nvidia drivers pop os 
Shell :: fatal: invalid gitfile format 
Shell :: how to check command history in linux with date and time 
Shell :: how to change folder case sensitivity windows 10 all subfolder 
Shell :: batch delete all files in subfolders of type 
Shell :: install beekeeper ubuntu 
Shell :: remove composer package 
Shell :: git push asking for username after setting up ssh key 
Shell :: install redash ubuntu 20.04 
Shell :: linux get ownership of own user directory folder ubuntu chown operation not permitted 
Shell :: how to set to default terminal in ubunty 
Shell :: vim reverse lines 
Shell :: react-native-router-flux 
Shell :: gh ubuntu 
Shell :: docker install python 
Shell :: ubuntu see date of last modification to file 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =