提交有关Subversion的代码(第一次) [英] Committing the code on Subversion (first time)
问题描述
我是Subversion的新手.我必须提交有关Subversion的代码,这是我第一次这样做.所以我的导师告诉我使用SSH将用户名放在他的服务器上.我是通过以下代码做到这一点的:
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>
,它工作正常.
现在,他要求提交代码,并给了我URL,但是他说我首先要使用您在SSH时拥有的用户名(即amit)创建一个文件夹.
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.
我如何在svn链接上创建文件夹,然后如何提交项目.
How I create a folder on svn link and then how to commit the project.
推荐答案
首先签出该存储库的方式
First checkout that repository by
svn checkout <Your URL> svn
现在cd
到 svn 文件夹,在 svn 文件夹中创建用户名文件夹(提交)并提交:
Now cd
to svn folder, create username folder(amit) in svn folder and commit:
svn commit -m"username folder is created."
现在将文件复制到该文件夹中(根据情况允许).现在,您必须添加每个新文件或新文件夹:
Now copy your files in that folder(amit in your case). Now you have to add each new file or new folder:
svn add filename
svn add foldername
现在您可以将这些文件提交到服务器:
Now you can commit these files to server:
svn commit -m"Some new files are added."
注意: -m
之后的文本是注释,您可以根据需要进行更改.
Note: Text after -m
are comments and you can change it according to your needs.
这篇关于提交有关Subversion的代码(第一次)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!