Pull single file on server

前端 未结 2 1789
北恋
北恋 2021-01-14 08:56

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

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-14 09:36

    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

提交回复
热议问题