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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,581 views 1 9
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