Pull single file on server

社会主义新天地 提交于 2019-12-30 10:39:20

问题


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


来源:https://stackoverflow.com/questions/11245424/pull-single-file-on-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!