[英]Move an existing NetBeans project to a remote server and place it under version control
I have a project that I have been working on for about a month. 我有一个项目已经工作了大约一个月。 The server we will be using for production has finally been made available.
我们将用于生产的服务器终于可用。 I want to place this project on the server and use Git for version control.
我想将此项目放置在服务器上,并使用Git进行版本控制。
I am trying to follow along with this tutorial, but it is not addressing my situation. 我正在尝试按照本教程进行操作,但是并不能解决我的情况。
http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository
I have intialized a local Git repository in Netbeans (version 7.3 has built in Git support), but what is my next step? 我已经在Netbeans中初始化了一个本地Git存储库(版本7.3已内置Git支持),但是下一步是什么?
Thanks for any help. 谢谢你的帮助。 First time using Git.
第一次使用Git。
Your next step is to create a bare repository on a remote server in which everyone will be collaborating. 下一步是在远程服务器上创建一个裸仓库,每个人都将在其中进行协作。 You can follow this tutorial for doing this, or consider a more flexible installation like Gitolite .
您可以按照本教程进行操作,或者考虑使用更灵活的安装方式,例如Gitolite 。
Is this enough, or do you also want to have a directory on the server with one of the branches checked out? 这是否足够,还是您还想在服务器上有一个目录,其中一个分支已签出?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.