Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

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

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


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.