Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete a folder from Bitbucket repository?

Tags:

bitbucket

I'm a Bitbucket noob and having a hard time getting started.

I'm trying to clean up the Bitbucket repository and my local git folder master and branch organisation.

My local computer's git folder has some folders deleted via Terminal $ rm -r folderName > $ git push.

Bitbucket repository still shows the folderName. How do I remove this?

I already deleted file and commited , but files cached on bitbucket.

like image 345
beqa Avatar asked Sep 02 '14 09:09

beqa


People also ask

How do I remove a folder from my repository?

Browse to the directory in the repository and branch that you want to delete. In the top-right corner, click "…", and then Delete directory. Review the list of files. Depending on your permissions and the branch protection rules, choose to either commit the change directly or propose the change using a pull request.

Can you delete a folder in GitHub repository?

You can delete an individual file or an entire directory in your repository on GitHub. People with write permissions can delete files or directories in a repository.


2 Answers

You need to remove the folder from your local repository with git rm -r folderName and then git commit -m 'Delete folder folderName because foo (for example) and git push.

like image 84
Adam Taylor Avatar answered Oct 18 '22 17:10

Adam Taylor


You need to commit your changes before pushing them.

like image 26
wRAR Avatar answered Oct 18 '22 16:10

wRAR