Horje
git ignore staged files Code Example
git ignore still tracking
git rm --cached <file>

git rm -r --cached <folder>
git remove from from repo and stop tracking
Update your . gitignore file – for instance, add a folder you don't want to track to . gitignore .
git rm -r --cached . – Remove all tracked files, including wanted and unwanted. Your code will be safe as long as you have saved locally.
git add . – All files will be added back in, except those in . gitignore .
git ignore staged files
#FIRST
git rm -r --cached .
git add .

#THEN
git commit -am "Remove ignored files"

#ONELINE
git rm -r --cached . && git add . && git commit -am "Remove ignored files"




Shell

Related
concat strings inside array bash script Code Example concat strings inside array bash script Code Example
cmd flutter doctor says android studio is not installed Code Example cmd flutter doctor says android studio is not installed Code Example
bash list all files in directory and subdirectories Code Example bash list all files in directory and subdirectories Code Example
install git linux Code Example install git linux Code Example
clone branch git Code Example clone branch git Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10