eclipe + GoogleCode 管理代码
2012-02-23 15:33
24 查看
gCode 用着有多好,相比大家都是知道的(不知道的去到度娘家里找谷哥去问个明白!),现在想要把代码永久的保存,以后可以看着自己年轻时候的代码,也是一种怀念哈!!!
如何获得一个GoogleCode帐号?好吧,这个你可以问度娘的!
我是从这个文章学的,怎么把Google的项目签到本地的。
注意:有些Google的目录是在GFW面前是访问不了的。我只是偶然能够访问,侥幸!
下面的这篇文章说的很详细,我就不再赘述了,
原文地址:http://blog.msbbc.co.uk/2007/06/using-googles-free-svn-repository-with.html
Ok - here are some very quick notes on getting a google svn hosting account set up with eclipse; as google is offering us all such an amazing resource, I have a feeling I'll be doing this again some time whilst working on other projects...
If you already have a gmail account, make sure you're logged in (that way, your repository and your account will be linked).
Start here:
http://code.google.com/hosting/
Go to the 'Create a new Project' link and create your project...
Install eclipse if you haven't already (current recent version is 3.5):
http://www.eclipse.org/downloads/
Now you need to install the subclipse plugin from within eclipse..
Here are some step-by-step instructions:
http://subclipse.tigris.org/install.html
Once that's done you should be able to open your repository as a new project within eclipse.
Within the package explorer (the panel on the left if you're in the java developer perspective), right click to get the context menu and go to 'New' and 'Other...'
expand the SVN folder and select 'Checkout Projects from SVN' and select Next
Select the Create a new repository location and select Next
The URL will be:
https://[YOUR_PROJECT_NAME].googlecode.com/svn
If you don't use https:// you'll check out the repository as read only
Select (highlight) the folder to check out as an eclipse project (e.g. trunk) and select Next.
Select the check out as a project configured using the New Project Wizard and select 'Finish'
For this exercise, I'm checking mine out as a java project, so I'm selecting Java Project and Next on the wizard box.
Give the Project a name (e.g. myProject), select Finish and OK
Let it check out your project...
You should see something like myProject [trunk] in the package explorer.
You can now right click on the folder and go to New > Folder and create a new folder
When you're ready, right click on the folder you've created, go to the Team context menu and select 'Add to Version Control'; you'll probably need to do this for any new files you subsequently add...
From then, commit will add new changes and update will refresh a stale repository.
One other note: to check out the project, I used my gmail username. The svn password isn't the same as your gmail password though.
I found the password for the code repository (when logged in) here - so hopefully this will help:
http://code.google.com/hosting/settings
NB: I've seen situations where subclipse (or subversion) would keep asking for a password; I managed to stop it from doing this by going into the Eclipse > Window > Preferences, expanding the Team folder, selecting SVN and ensuring that the SVN interface was
selection was set to SVNKit (Pure Java).
如何获得一个GoogleCode帐号?好吧,这个你可以问度娘的!
我是从这个文章学的,怎么把Google的项目签到本地的。
注意:有些Google的目录是在GFW面前是访问不了的。我只是偶然能够访问,侥幸!
下面的这篇文章说的很详细,我就不再赘述了,
原文地址:http://blog.msbbc.co.uk/2007/06/using-googles-free-svn-repository-with.html
Using google's free SVN repository with Eclipse
Ok - here are some very quick notes on getting a google svn hosting account set up with eclipse; as google is offering us all such an amazing resource, I have a feeling I'll be doing this again some time whilst working on other projects...If you already have a gmail account, make sure you're logged in (that way, your repository and your account will be linked).
Start here:
http://code.google.com/hosting/
Go to the 'Create a new Project' link and create your project...
Install eclipse if you haven't already (current recent version is 3.5):
http://www.eclipse.org/downloads/
Now you need to install the subclipse plugin from within eclipse..
Here are some step-by-step instructions:
http://subclipse.tigris.org/install.html
Once that's done you should be able to open your repository as a new project within eclipse.
Within the package explorer (the panel on the left if you're in the java developer perspective), right click to get the context menu and go to 'New' and 'Other...'
expand the SVN folder and select 'Checkout Projects from SVN' and select Next
Select the Create a new repository location and select Next
The URL will be:
https://[YOUR_PROJECT_NAME].googlecode.com/svn
If you don't use https:// you'll check out the repository as read only
Select (highlight) the folder to check out as an eclipse project (e.g. trunk) and select Next.
Select the check out as a project configured using the New Project Wizard and select 'Finish'
For this exercise, I'm checking mine out as a java project, so I'm selecting Java Project and Next on the wizard box.
Give the Project a name (e.g. myProject), select Finish and OK
Let it check out your project...
You should see something like myProject [trunk] in the package explorer.
You can now right click on the folder and go to New > Folder and create a new folder
When you're ready, right click on the folder you've created, go to the Team context menu and select 'Add to Version Control'; you'll probably need to do this for any new files you subsequently add...
From then, commit will add new changes and update will refresh a stale repository.
One other note: to check out the project, I used my gmail username. The svn password isn't the same as your gmail password though.
I found the password for the code repository (when logged in) here - so hopefully this will help:
http://code.google.com/hosting/settings
NB: I've seen situations where subclipse (or subversion) would keep asking for a password; I managed to stop it from doing this by going into the Eclipse > Window > Preferences, expanding the Team folder, selecting SVN and ensuring that the SVN interface was
selection was set to SVNKit (Pure Java).
相关文章推荐
- 使用Git 上传 文件到GoogleCode(其它代码管理平台也类似)
- 使用Git+GoogleCode管理代码
- 使用GoogleCode管理你的代码 .
- 使用GoogleCode管理你的代码
- 使用GoogleCode管理你的代码
- 采购招标管理系统后台部署代码、数据库文件下载地址
- Java web项目 爱分享社区评论管理部分代码
- 关闭 晓K的专栏 我的学习历程 目录视图摘要视图订阅 赠书 | 异步2周年,技术图书免费选 每周荐书:渗透测试、K8s、架构(评论送书) 项目管理+代码托管+文档协作,开发更
- Git代码分支管理在项目中的实践
- git建立本地的代码版本管理
- 根据自增量ID,分页,文章管理,部分代码
- C++实现简单的职工管理系统实训代码
- WINCE应用的UI实现方案 —— 下篇:代码一小步,项目进度管理一大步
- 图书管理系统代码补上!~~~~~~(是初学者见谅哦~)
- 基于redis集群实现的分布式锁,可用于秒杀商品的库存数量管理,有测试代码(何志雄)
- Coding 代码管理快速入门
- PLSQL(PL/SQL)集成Team Foundation Server (TFS),实现数据库代码的版本管理
- sonarQube代码质量管理笔记
- Windows上的代码管理工具git分享
- sonarQube代码质量管理笔记