Wednesday, July 11, 2012

Eclipse + Egit + Remote Repo + Add new project

I use Git. I use Eclipse. I use Egit. I use Bitbucket. I needed to add an Eclipse project to my repo. I couldn't find how to do it anywhere. Here is how I did it (roughly).


  • Open Eclipse (4.2+).
  • Install Egit:  http://www.vogella.com/articles/EGit/article.html.
  • File > Import > Git > Projects from Git > URI.
  • Put your Bitbucket repo address in (for example: https://username@bitbucket.org/username/blahblah.git )
  • Go to Window > Show View > Git Repositories.
  • Make note of the repo structure.
  • Copy/Move your project to the repo directory (it should be in your eclipse workspace directory).
  • In Git Repositories view, right click the name of the repo and "commit" then "push".
  • Done.
Hopefully this is helpful.

No comments:

Post a Comment