15.5.13

Google Code, Git, and Eclipse

Create a new Project in Google Code

  • Open any projects.
  • From "My favorites" drop-down menu, you will see "Create a project...", click on it.
  • Fill in all Options except Project labels. Choose Git as the Version Control System.
  • Click on "Create project" button.

Find Access Information

  • Open "Source" tab.
  • etc. etc. etc.

Clone a Repository

  • Run this command
git clone https://<your user name>@code.google.com/p/simple-demo-set/ 

  • Create a RADME.txt under the repository.
  • git add README.txt
  • git commit -m "Add the first file"
  • create $HOME/.netrc (I'm using cygwin)
machine code.google.com
login XXXX
password GOOGLEGENERATED
  • git push -u origin master

Add Git Repository into Eclipse

  • Open Git Repositories Exploring Perspective
  • Click on "Add an existing local Git Repository to this view"
  • Select the designated directory location and clikc on Finish.

Share Project from Eclipse

  • Choose the repository instead of create a local one.

Create .gitignore

It seems that Eclipse's global ignorance settings don't work for Git. You have to create your own .gitignore for the git repository. These are the entry you probably want to add.

.classpath
.project
.settings
target


No comments: