Git - remove file from git repository only, and keep it for filesystem

0 votes
115 views
added Aug 16, 2018 in Git by LC Marshal Captain (25,770 points)
git rm --cached file1.txt //remove it
git commit -m "remove file1.txt" // commit

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...