Pull single file on server

前端 未结 2 1787
北恋
北恋 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:19

    You can grab a single file via this URL:

    https://raw.github.com/USER/PROJECT/BRANCH/FILE
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题