Answers for "git remove file from tracking without deleting"

3

remove file from git tracking

git rm --cached <file_name>
Posted by: Guest on January-19-2021
2

remove folder from repo but keep locally

git rm -r --cached File-or-FolderName
git commit -m "Removed folder from repository"
git push origin master
Posted by: Guest on July-04-2020
0

git remove remote file keep local

# for single file
git rm --cached myfile

# for directory file
git rm --cached --r myfile
Posted by: Guest on June-25-2020

Code answers related to "git remove file from tracking without deleting"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language