在 Subversion 上提交代码(第一次)
我是 Subversion 的新手。我必须提交有关颠覆的代码,这是我第一次这样做。所以我的导师告诉我使用 SSH 将用户名放在他的服务器上。我通过以下代码做到了这一点:
amit@
并且工作正常。
现在他要求提交代码并给了我 url,但他让我先通过 SSH 时获得的用户名(即 amit)创建一个文件夹。
如何在 svn 链接上创建文件夹,然后如何提交项目。
I am new on Subversion. I have to commit a code on subversion and this is the first time that I am doing this. So my mentor told me to put username on his server using SSH. I did this by following code:
amit@<URL>
and it works fine.
Now he asked to commit the code and he give me url, but he said me to create a folder first by username which you have got at the time of SSH i.e. amit.
How I create a folder on svn link and then how to commit the project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
首先通过现在
cd
检出该存储库到 svn 文件夹,在 svn 文件夹中创建用户名文件夹(amit) 并提交:
现在将您的文件复制到该文件夹中文件夹(在您的情况下amit)。现在您必须添加每个新文件或新文件夹:
现在您可以将这些文件提交到服务器:
注意:
-m
后面的文本是注释,您可以更改根据您的需要。First checkout that repository by
Now
cd
to svn folder, create username folder(amit) in svn folder and commit:Now copy your files in that folder(amit in your case). Now you have to add each new file or new folder:
Now you can commit these files to server:
Note: Text after
-m
are comments and you can change it according to your needs.魔法!! :)
如果您已经有一个开始工作的项目,但它还不是 svn 工作副本。
最简单的方法:
使用 cd 导航到终端中的项目文件夹并输入:
然后:
然后:
Magic!! :)
If you already have a project that you started working on but it's not an svn working copy yet.
The simplest way ever:
Navigate to the project folder in the terminal using cd and type:
then:
then:
svn ci
与使用svn commit
一样好svn ci
is as good as usingsvn commit
在您的主文件系统中创建文件夹并将整个内容提交到服务器。
前任:
阿米特/你的项目文件夹/
Create the folder in your home filesystem and commit the entire thing to the server.
ex:
amit/your_project_folder/
不确定,但我会尝试以下操作:
svn mkdir armit@/
svn checkout armit@/
svn commit
中的Not sure, but i would try this:
svn mkdir armit@<host>/<your_folder>
svn checkout armit@<host>/<your_folder>
<your_folder>
in localsvn commit <your_folder>
我必须将我的代码从我的 svn 发送到其他 svn url。我做了什么
1 在一个地方签出目标 svn url(我需要推送我的代码的地方)
2 现在,我有了我的代码。我使用以下命令从代码中删除了 .svn 文件夹(隐藏)以避免版本之间的冲突
3 现在我复制了代码(文件夹)并将其粘贴到目标文件夹(即步骤 1 中)并运行以下命令
4 现在提交代码。
I had to send my code to other svn url from my svn. What I did
1 Take checkout of destination svn url in one place (Where i need to push my code)
2 Now, I have my code. I deleted .svn folder(hidden) from my code using following command to avoid conflict between versions
3 Now I copied my code(folder) and paste it to destination folder i.e in step 1 and run the following command
4 Now commit the code.
//首先添加工作副本
//删除 google place、Google 地图、Google 地图核心等框架,因为这些框架在上传数据时会导致错误。
//First add working copy
//Remove frameworks such as google places, Google maps, Google maps core because these cause error while uploading data.