[英]How to work on a remote file on a linux machine using Windows 10?
This seems like a strange question at first, but I'd really like to know how other people do it: I'm currently creating a node.js application that runs on a Debian server in the internet. 起初这似乎是一个奇怪的问题,但是我真的很想知道其他人是如何做到的:我当前正在创建一个可以在Internet上的Debian服务器上运行的node.js应用程序。
My dev machine is (unfortunately) a Windows 10 Pro system. 我的开发机是(不幸的)Windows 10 Pro系统。 Now, whenever I tweak a file that I edited locally, I need to re-upload it via SCP or FTP, which is extremely uncomfortable.
现在,每当我调整本地编辑的文件时,都需要通过SCP或FTP重新上传它,这非常不舒服。 Usually, I'd simply mount the remote file system into my dev machine's filesystem and work directly on the files.
通常,我只是将远程文件系统挂载到开发机的文件系统中,然后直接在文件上工作。
Of course, I can also just work on the remote system via ssh in a console, but that has other disadvantages for me. 当然,我也可以通过控制台中的ssh在远程系统上工作,但这对我来说还有其他缺点。
I'm looking for the best workflow. 我正在寻找最佳的工作流程。 What is yours?
你是什么人
Workflow using version control system: 使用版本控制系统的工作流程:
1.) You can make a private repo on Github(private repo is paid) or Bitbucket(private repo is free) of your project. 1.)您可以在项目的Github(付费私人回购)或Bitbucket(免费私人回购)上进行私有回购。
2.) Update the code repository from your windows system. 2.)从Windows系统更新代码存储库。
3.) Copy the repo on the debian server from bitbucket/github and pull the changes everytime you update repository from local system. 3.)每次从本地系统更新存储库时,从bitbucket / github复制debian服务器上的仓库,并提取更改。
Here is bitbucket tutorial link for getting started 这是Bitbucket 入门教程链接
This will take time because you will have to learn Git. 这将花费一些时间,因为您必须学习Git。 Link to tutorials:
链接到教程:
我在WinSshFs上取得了相当不错的经验,您可以在其中通过SSH将目录挂载到本地文件系统中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.