Answers for "how to remove files from git without deleting in local"

0

git remove without deleting

For a single file:

git rm --cached mylogfile.log

and for a single directory:

git rm --cached -r mydirectory
Posted by: Guest on April-06-2021
0

delete file on git

$ git rm <file>

$ git commit -m "Deleted the file from the git repository"

$ git push
Posted by: Guest on February-05-2022

Code answers related to "how to remove files from git without deleting in local"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language