Is there a way to remove a directory from git repository

0 votes
Jul 14, 2018 in Git & GitHub by Tyrion anex
• 8,700 points
1,246 views

1 answer to this question.

0 votes

This is simple, just follow the commands below, make sure you have checked out to master branch prior to doing this:

git rm -r "directories"

git commit -m "Remove duplicated directory"

git push origin <your-git-branch> 
answered Jul 14, 2018 by Sophie may
• 10,620 points

Related Questions In Git & GitHub

0 votes
1 answer

I want to create a repository on folder level in Git. Is this possible?

That is possible but ideally, you should ...READ MORE

answered Sep 28, 2020 in Git & GitHub by Mudit
716 views
0 votes
1 answer

How to add an empty directory to a Git repository?

Hi@akhtar, A popular solution is to simply add ...READ MORE

answered Oct 5, 2020 in Git & GitHub by MD
• 95,460 points
1,144 views
0 votes
1 answer

How to remove files from git repository as well as users system?

Hi@akhtar, The git rm command deletes the file ...READ MORE

answered Nov 19, 2020 in Git & GitHub by MD
• 95,460 points
796 views
0 votes
1 answer

How to pull from a Git repository through an HTTP proxy?

Hi@akhtar, You can set the HTTP proxy that Git ...READ MORE

answered Nov 22, 2020 in Git & GitHub by MD
• 95,460 points
2,746 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 votes
1 answer
0 votes
1 answer
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,622 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP