How to remove file from git?
Use
git rm
:git rm file1.txt
git commit -m "remove file1.txt"
But if you want to remove the file only from the Git repository and not remove it from the filesystem, use:
git rm --cached file1.txt
Common or rare errors in php, Drupal, nodejs, magento
git rm
:git rm file1.txt
git commit -m "remove file1.txt"
git rm --cached file1.txt
Comments
Post a Comment