git odstrániť priečinok na diaľku
git rm -r --cached <folder>
git commit -m "Removed Folder"
git push origin master
ako odstrániť súbor z príkazu git
git rm file1.txt
git commit -m "remove file1.txt"
ako odstrániť zmeny súborov v git
git clean -df
git checkout -- .
git odstrániť súbor z histórie
$ git rm --cached giant_file
# Stage our giant file for removal, but leave it on disk
git odstrániť súbor
git rm [-f | --force] [-n] [-r] [--cached] [--ignore-unmatch]
[--quiet] [--pathspec-from-file=<file> [--pathspec-file-nul]]
[--] [<pathspec>…]