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
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 tracked files without deleting
git rm --cached -r mydirectory
git remove remote file keep local
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
remove tracked files git
git rm --cached <file>
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