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

Hot do delete a file

Navanael March 5, 2018

I have pushed a file wrong and now i can't delete it on the website

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 8, 2018

Hi! What do you mean by "delete it on the website", are you referring to Bitbucket?

If nobody else has pushed any changes to the repo, you can do a git -reset. Otherwise, you'll need to do a rebase. 

Alternatively, if the file you accidentally pushed doesn't contain any sensitive data and you don't mind it being in the history, you can just remove it from your stage and do another commit, the file will then be deleted from Bitbucket. 

I recommend you reading the following articles if you need more information in the operations mentioned above:

 

Hope that helps!
Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events