Answers for "git command to delete a directory"

30

delete .git folder

rm -rf .git
Posted by: Guest on April-01-2020
1

git remove directory

git rm -r Name_of_the_directory_you_want_to_delete
Posted by: Guest on May-03-2022
0

how to remove a directory in git

git rm -r --cached myFolder
Posted by: Guest on October-24-2020
1

How to delete multiples files in Github

In the command-line, navigate to your local repository.
Ensure you are in the default branch:
git checkout master
The rm -r command will recursively remove your folder:
git rm -r folder-name
Commit the change:
git commit -m “Remove duplicated directory”
Push the change to your remote repository:
git push
Posted by: Guest on September-07-2020
0

remove directory from git

git rm -r one-of-the-directories // This deletes from filesystem
git commit . -m "Remove duplicated directory"
git push origin <your-git-branch> (typically 'master', but not always)
Posted by: Guest on January-28-2022

Code answers related to "git command to delete a directory"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language