Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

remove a file in master branch

Edited

Hello,

i use ubuntu and i install git for push my script on bitbicket.
i pushed a file in branch master but now i want to delete this file, the problem is i don't know how to do that, i use this command but not work:

git rm test.vmware.yaml

thanks for any information,

1 answer

0 votes
Ana Retamal Atlassian Team Nov 11, 2020

Hi  @adtyh jkipmsd, thanks for reaching out!

First of all, please note that this is not a Bitbucket specific question, this is a question specific to Git. That said, I'll still try to help you but you might also like to know that there are other multiple forums where you can find help and information regarding this system :) 

The command you pasted above is only one command from the sequence of commands you need to make the operation effective. The removal would go something like this:

git rm <directory>
git commit -m "Removed Directory"
git push origin master

Once you push the change (the removal of the file/s) the operation will be completed and the file/s deleted. If the operation is not successful, you should receive some kind of error. If you do, please let us know and share here the error message so we can look into it. 

For additional information, you can also read Git's official documentation.

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,740 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you