1

I've wrongly added some useless files to a bitbucket repository. Now, I'd like to delete these files from the remote repository, but not from the local one. These files are already added to .gitignore. Is this delete operation possible using eclipse?

tigerjack
  • 1,158
  • 3
  • 21
  • 39

2 Answers2

1

You can't do that in eclipse but here's how to do it in bitbucket.

https://answers.atlassian.com/questions/293052/how-to-delete-a-filefolder-from-bitbucket-repository

remote repository's website > Source > select branch > select folder > select file to be deleted > Edit > Delete > Commit.

Don't push those files the next time and make sure they are added to the gitignore.

Paperbag Writer
  • 823
  • 1
  • 11
  • 39
1

I assume that you have cloned the bitbucket repository using EGIT

In Eclipse using EGIT:

  • delete the file in the path of the cloned repository. Ex: C:/<-Path to your repository->/FiletoDelete

  • Refresh

  • Open the Git Staging View

  • Stage the file & Commit the file deletion

  • Push this commit to the remote repository

Vamsi Ravi
  • 1,196
  • 8
  • 26