Skip to content

Instantly share code, notes, and snippets.

@ebermudez
Created May 31, 2015 21:44
Show Gist options
  • Save ebermudez/ef20948d744b248fe6e5 to your computer and use it in GitHub Desktop.
Save ebermudez/ef20948d744b248fe6e5 to your computer and use it in GitHub Desktop.
Step-by-step guide
- Over an Eclipse Project, click share and verify if you have or not the mercurial eclipse plugin installed.
- if no:
- go to Help->Install new software
- Inside the "work with" field write: http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable
- Add it
- Download the "MercurialEclipse Stable Release"
- Check if you have the hg command installed in your computer
- open a terminal
- type hg
- if you see an error, go to http://mercurial.selenic.com/wiki/Download and download a mercurial version.
- Install the mercurial only version. No tortoise.
- Avoid installing to a path with some spaces in their names: "Archivos de Programa". Eclipse has troubles with them.
- Find your Mercurial.ini
- It can be found in the folder ~/.hgrc on *nix systems and in %UserProfile%\mercurial.ini on Windows systems. (%UserProfile% is typically "C:\Documents and Settings\[username]\" on Windows 2000 or Windows XP systems, and typically C:\Users\[username]\ on Windows Vista and Windows 7 systems.)
- I had mine (in windows 7) inside the installation folder: C:\Development\Mercurial
- Find this line:
; username = Joe User <j.user@example.com>
- Replace it with your information, delete the ";" and save.
- Go to Ecplise -> Window -> Preferences
- Click on Mercurial
- Browse and find the hg command.
- Change the username and set it to the username on bitbucket.
- Right click on the project and select Team -> Share Project
- Select Mercurial and click finish
- Now, go to bitbucket
- Create a new repo
- Click on Clone and copy the https url
- Go back to Eclipse
- Right click on the project
- Select team
- If the repo has nothing on it, you can just commit and then push
- If the repo has something (it's not a new repo), then you should pull and merge before commit and push
- You should see your commited code in bitbucket
by edge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment