Is there a way to remove a directory from git repository?

0 votes
Jul 13, 2018 in Git & GitHub by Tyrion anex
• 8,280 points
29 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 13, 2018 by Sophie may
• 9,430 points

Related Questions In Git & GitHub

0 votes
1 answer

How to forcefully commit a file to Git even if the file is ruled as unchanged?

This is simple, just follow the below ...READ MORE

answered Jul 11, 2018 in Git & GitHub by Sophie may
• 9,430 points
26 views
0 votes
1 answer

gerrit-cherry-pick:fatal: 'origin' does not appear to be a git repository

The user account making that command does ...READ MORE

answered Aug 13, 2018 in Git & GitHub by Kalgi
• 37,320 points
161 views
0 votes
1 answer

How to add a remote git repository in Jenkins

Follow these steps: Step 1 Go to Manage ...READ MORE

answered May 23 in Git & GitHub by Alok
29 views
0 votes
1 answer

How to do a re-merge into another branch in git

Seems like you want to rebase your ...READ MORE

answered May 7, 2018 in Git & GitHub by DareDev
• 6,810 points
93 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

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

The ‘git log’ command is your closest ...READ MORE

answered Jul 4, 2018 in Git & GitHub by Sophie may
• 9,430 points
46 views