简体   繁体   English

使用Netbeans通过sftp上传时的目录结构

[英]Directory structure when uploading over sftp with Netbeans

When I sync with SVN, my local directory structure looks like this: 当我与SVN同步时,我的本地目录结构如下所示:

.../branches/codeigniter/code.php

I then need to be able to upload any changes I make over sftp to my webserver for testing before I commit to 然后,我需要能够将通过sftp所做的所有更改上传到Web服务器进行测试,然后再提交到

.../web/code.php

I do not want the /branches/codeigniter part of files' path to be preserved. 我不希望保留文件路径的/ branches / codeigniter部分。 I only want to upload the files in the codeigniter directory to what I specified as the upload directory on the webserver. 我只想将codeigniter目录中的文件上传到我在网络服务器上指定为上传目录的文件。

However, Netbeans creates a /branches/codeigniter directory on my webserver (since that is what my local directory looks like). 但是,Netbeans在我的Web服务器上创建了一个/ branches / codeigniter目录(因为这是我的本地目录的样子)。 So what I get when I upload is: 所以我上传时得到的是:

.../web/branches/codeigniter/code.php

Is there any way I can tell netbeans to treat the codeigniter directory as the root and do not create any directories on the webserver? 有什么办法可以告诉Netbeans将codeigniter目录视为根目录,而不在Web服务器上创建任何目录?

I greatly appreciate any help. 我非常感谢您的帮助。

I don't know if there is a way to do what you're asking or not, however you shouldn't have to because you shouldn't be doing it this way :-) 我不知道是否有一种方法可以解决您要问的问题,但是您不必这样做,因为您不应该这样做:-)

You shoudn't have the entire SVN structure checked out into a project. 您不应该将整个SVN结构检出到项目中。 You checkout each branch you might be working with to a separate project. 您签出您可能正在使用的每个分支到一个单独的项目。 I think that will solve your problem because then the root of your project is the branch you checked out. 我认为这将解决您的问题,因为项目的根是您签出的分支。

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

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