[英]How to make an existing project folder, an SVN repository and push it to a remote repo
I am currently working on an angular application. 我目前正在研究角度应用程序。 I was given the URL of an SVN repo where i am expected to push my code. 给我提供了SVN存储库的URL,希望将其推送到我的代码中。 I have worked with git previously but am completely new to SVN. 我以前使用过git,但对SVN来说是全新的。 I am on Ubuntu and have installed subversion. 我在Ubuntu上并已安装Subversion。
Some online solutions i've found stated that i should create a new SVN repo and import my code into it but I would like to initiate svn in my already existing project folder (like git init). 我发现一些在线解决方案表明,我应该创建一个新的SVN存储库并将我的代码导入其中,但是我想在我已经存在的项目文件夹(如git init)中启动svn。 I have tried multiple commands like svn checkout, svn import etc.. as per online sources but I am not sure i am doing it right. 我已经尝试了多个命令,例如svn checkout,svn import等。根据在线资源,但是我不确定我做对了。
Is there a straight forward way of making an existing project a svn repo (working copy?) and then pushing the code into a remote repo from command line on Ubuntu. 是否有直接的方法将现有项目制作为svn存储库(工作副本?),然后将代码从Ubuntu上的命令行推送到远程存储库中。 TIA TIA
Create a project folder in the remote repo, either: 在远程仓库中创建一个项目文件夹:
Checkout out a working copy of the parent folder, then commit the new subdirectory (you do not need to keep this working copy) 签出父文件夹的工作副本,然后提交新的子目录(您无需保留此工作副本)
Or, use svn mkdir
to create the subdirectory directly within the remote repo in the appropriate parent folder. 或者,使用svn mkdir
在相应的父文件夹中的远程存储库中直接创建子目录。
Then you can checkout that new project folder on top of your existing project folder. 然后,您可以在现有项目文件夹的顶部签出该新项目文件夹。 Use svn status
to see all of your uncontrolled files, which can then be added and committed to the remote repo. 使用svn status
查看所有不受控制的文件,然后可以将其添加并提交到远程仓库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.