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

remove a file in master branch

adtyh jkipmsd October 26, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
November 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
AUG Leaders

Atlassian Community Events