Thursday 23 January 2014

Committing your Eclipse project to Google Code hosting

We are assuming that:

  1. Link ->You have created a project on Google Code
  2. And you have connected Subclipse with Google Code

If you have just created the project on Google code and connected Subclipse. Visit your "Source" tab (on Google Code your project home page) and then "Browse". Yet there is nothing. In order to send the project from your computer to Google Code repository it has to be committed. 

If this is the first time you are going to commit your code to the repository then
  1. Go to Package explorer in Eclipse
  2. Right click your project and select "Team" and "Share Project"

3. Select SVN and click Next

4. Check "Use existing repository location", select the repository that you have created and click Next
5. Press Next Next and on asking for password provide the password which is under "Source" tab of your project repository. Click googlecode.com password 
It will take you to the window where you can see your user name and password.

NOTE: Remember to change the username as well. Provide the one that is written in the repository (Maybe your email ID)

After the above first time (one time) process, follow these steps to commit your code to the repository:
  1. Go to Package explorer in Eclipse
  2. Right click your project and select "Team" and "Commit"
  3. A Commit window opens. Add a comment e.g added feature bla bla
  4. In the same Commit window the changes portion in the bottom shows the files that have been changed in your project since the last commit. If its the first time then everything will be displayed.
  5. Select or deselect whatever you want to send / not sent to the repository.
  6. One can choose not to commit the bin files
  7. Press OK
  8. Now go to the repository on the Google code project. Browse the source and your project will be uploaded

No comments:

Post a Comment