简体   繁体   English

带有Git存储库的Netbeans远程项目

[英]Netbeans remote project with Git repository

I have a remote project in Netbeans, I mean that I have local copy of SFTP project and when I perform changes I can upload them directly to the server. 我在Netbeans中有一个远程项目,我的意思是我有SFTP项目的本地副本,当我执行更改时,可以将它们直接上载到服务器。

Now I want commit all changes to Bitbucket repository as well. 现在,我还要将所有更改都提交到Bitbucket存储库。 How can I associate my project sources with repository. 如何将我的项目源与存储库相关联。 When I try to perform Team -> Git -> Clone Netbeans says that folder is not empty and can't clone project from repository. 当我尝试执行Team -> Git -> Clone Netbeans时,该文件夹不为空,无法从存储库克隆项目。

Have you some solution? 你有解决办法吗?

I have found a solution. 我找到了解决方案。

  1. Clone new project from Git repository. 从Git存储库克隆新项目。

  2. After cloning simply crate new Remote Project and set created on first step source directory. 克隆后,只需创建新的远程项目并在第一步源目录中创建集即可。

That's all. 就这样。 This order is important. 此顺序很重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM