简体   繁体   English

如何制作一个现有的项目文件夹,一个SVN存储库并将其推送到远程仓库

[英]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.

相关问题 将现有的Git仓库推送到svn中的文件夹 - Push existing Git repo to a folder in svn 如何将现有的 RedHat BRMS 项目推送到远程 git 存储库 - How to push existing RedHat BRMS project to remote git repository 将更新后的 master 分支推送到位于同一项目文件夹中并在本地 git repo 中配置的远程存储库 - Push the updated master branch to remote repository which in in same project folder and configured in local git repo Git存储库-切换项目本地存储库并将其推送到现有的git存储库 - Git repository - switch project local repo and push it to existing git repo 如何在保持历史记录的同时将git repo推送到现有的SVN repo? - How to push a git repo to an existing SVN repo while maintaining history? 如何不将特定文件夹推送到远程仓库? - How not to push a particular folder to the remote repo? 如何推送到现有 git 存储库中的新文件夹 - How to push to a new folder in existing git repo 将现有git存储库推送到现有SVN存储库 - Push an existing git repository to an existing SVN repository Git-从现有项目设置远程存储库,并可能进一步推进 - Git - setting remote repository from existing project with possibility to push further 将SVN存储库的一部分导入现有的Git存储库 - Import part of a SVN repository into an existing Git repo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM