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

0 votes
added Aug 16, 2018 in Git by LC Marshal Captain (25,790 points)
git rm --cached file1.txt //remove it
git commit -m "remove file1.txt" // commit - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.