Git – Delete Files

Deleting Files in Git Use git rm command to delete any file from current working directory. You also need to commit and push your changes to delete the file from the local and remote git repository. Syntax: git rm [filename] Example: For example, you have multiple files in your current project. In my case, the files are as followings. [email protected]:/app$ ls -l total 164 drwxr-xr-x 2 root root 4096 Dec 28 03:29 Documents -rw-r–r– 1 root root 35259 Dec 28 03:28 firstfile.txt -rw-r—– 1 root root 119180 Dec 28 03:28 general.log…

Read More