在服务器上拉单个文件 [英] Pull single file on server

查看:120
本文介绍了在服务器上拉单个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GitHub上提交了几个文件,但我只想在服务器上只提取一个文件。如何使用PuTTY做到这一点?

I have committed several files on GitHub but I want to pull only single file on server. How can I do that using PuTTY?

推荐答案

git fetch
git checkout -m revision  -- the/file/you/want
git add the/file/you/want
git commit

结账您想要的文件并将其与当前文件合并

checkout the file you want and merge it with the current one

这篇关于在服务器上拉单个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆