简体   繁体   English

如何将我的项目的新版本上传到SVN(eclipse)?

[英]How do I upload a new version of my project to SVN (eclipse)?

I have a Java project in an SVN server. 我在SVN服务器上有一个Java项目。 I created a whole new version of it and now I want to "commit" but keep the previous version on the server. 我创建了它的全新版本,现在我想“提交”,但保留以前的版本在服务器上。 I'm not allowed to use branches on this project. 我不允许在这个项目上使用分支机构。 So I've changed the new project's name to projectName_improved . 所以我把新项目的名称改为projectName_improved I created a new folder for the project on the server. 我在服务器上为项目创建了一个新文件夹。 Now I want to upload projectName_improved to the new folder. 现在我想将projectName_improved上传到新文件夹。 I'm using eclipse (+SVN plugin). 我正在使用eclipse(+ SVN插件)。 How do I technically do it (without branching)? 我在技术上如何做到(没有分支)?

EDIT: The plugin I'm using is Subclipse . 编辑:我正在使用的插件是Subclipse

  • In Eclipse, go to the SVN Repositories perspective. 在Eclipse中,转到SVN Repositories透视图。

SVN存储库

  • Right click on the folder in which you want to put the new (improved) project. 右键单击要放置新(改进)项目的文件夹。

右键单击目标文件夹

  • import (to import a project to the server). 导入(将项目导入服务器)。

导入窗口

  • Browse... 浏览...

  • Find the project on your computer. 在您的计算机上找到该项目。 OK. 好。 OK. 好。 That's it. 而已。 The new (improved) project is being uploaded to the server. 新(改进的)项目正在上传到服务器。 Done. 完成。

Not a Java person myself, but from experience it sounds like you need to either; 我自己不是一个Java人,但从经验来看,它听起来像你需要;

A. Create a new repository on the SVN server. A.在SVN服务器上创建新的存储库。 or B. Simply ADD the new folder in the existing repository and then in eclipse you should be able to commit. 或B.只需添加现有存储库中的新文件夹,然后在eclipse中您应该能够提交。

I don't think there is anything in the eclipse plug-in itself that alows you to ADD new folders, you have to do that from the OS, or using an app like RapidSVN. 我不认为eclipse插件本身有任何东西可以让你添加新的文件夹,你必须从操作系统或使用像RapidSVN这样的应用程序。

When I say ADD i mean that you can right click on the folder in win explorer and under SVN you can click the Add command. 当我说ADD时,我的意思是你可以右键单击win explorer中的文件夹,在SVN下你可以单击Add命令。 I am using tortoisesvn.... it will also add icons to your folders to let you know what needs to be committed. 我正在使用tortoisesvn ....它还会在您的文件夹中添加图标,让您知道需要提交的内容。

Disconnect from the svn first (eclipse -> team menu -> disconnect) which will delete the existing svn info(say yes when it asks) and then again from the team menu share project- > follow on screen guiding into the svn repo (chosing the place you want to put it in. probably trunk). 首先断开svn (eclipse -> team menu -> disconnect) ,这将删除现有的svn信息(当它询问时说是)然后再从team menu share project- > follow on screen guiding进入svn repo(选择)你要放入的地方。可能是树干)。 is this not working? 这不起作用吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将我的 Eclipse 项目转换为早期的 Java 版本? - How do I convert my Eclipse project to an earlier Java version? 如何将SVN项目作为Java项目签入Eclipse? - How do I check out an SVN project into Eclipse as a Java project? 你如何在eclipse中向svn添加项目? - How do you add a project to svn in eclipse? 如何在Eclipse中更改“已安装的项目方面”的Java版本? - How do I change the Java version of my “installed project facet” in Eclipse? 如何将受版本控制的 Eclipse 中的本地 Java 项目推送到 GitHub? - How do I push my local Java project in Eclipse that is version controlled to GitHub? 如果我用乌龟svn结帐,该如何从svn中解释该项目? - How to explain eclipse that project from svn if I checkout it by tortoise svn? 从工作站除去Eclipse。 如何告诉SVN忽略文件并填充版本标签 - Remove Eclipse from workstation. How do I telll SVN to ignore files and to fill version tags 如何使用Eclipse Indigo首次将新项目检入SVN - How to check in new project to SVN for first time using Eclipse Indigo 如何在Eclipse和Subversion中启动新项目 - How do I start a new project in Eclipse and Subversion 如何在Eclipse中的“文件”>“新建”>“_____”菜单中添加“Android项目”? - How do I add “Android Project” to the File>New>_____ Menu in Eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM