Sunday, 8 April 2018

How to delete one folder from git repo



You can  delete the folder locally and then push.

1st:- git rm -rf  folder name
2nd:-git add *
3rd:-git commit -a -m "removed folder"
4th:-git push origin master


How to delete multiples files in Github


Make sure you are in the default branch:
Git checkout master
The rm -r command will delete your folder again:

git rm -r folder-name

make changes:

git commit -m "remove duplicate directory"

Push changes to your remote repository:

git push original master

0 comments:

Post a Comment