culTest

    One of the 24 questions in this topic

    How much do you know about Git & GitHub: History Engineering and Automation?

    Which command lets you remove files from the repository when they are in .gitignore but were previously committed by mistake?

    Answers

    git rm --cached <file>Correct
    git delete --force
    git ignore --apply
    git clean -f

    --cached removes the file from Git's index while keeping the physical file on your computer.