remove file from git tracking
git rm --cached <file_name>
remove file from git tracking
git rm --cached <file_name>
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
git remove remote file keep local
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us