I have committed several files on GitHub but I want to pull only single file on server. How can I do that using PuTTY?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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
回答2:
You can grab a single file via this URL:
https://raw.github.com/USER/PROJECT/BRANCH/FILE