Articles → GIT → Remove Files From Repository In GitRemove Files From Repository In GitIn this article, we will remove files from repository in git.Steps To remove the file from the repositoryRun the rm command.CommitHere are the 2 commandsGit rm abc.txt Git commit abc.txt -m “File Deleted”Here abc.txt is the file name. It is important to note that you can use -f to force remove the file.Posted By - Karan Gupta Posted On - Wednesday, June 26, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
Git rm abc.txt Git commit abc.txt -m “File Deleted”
Query/Feedback