Git: How to pull a single file from a server repository in Git?

后端 未结 8 1096
小蘑菇
小蘑菇 2021-01-29 17:57

I am working on a site with a server running Git. I am using Git for deployment (not GitHub). This was set up prior to my involvement using a hook method, and I referred to this

8条回答
  •  离开以前
    2021-01-29 18:21

    git fetch --all
    git checkout origin/master -- 
    git add 
    git commit -m " updated"
    

    This is assuming you are pulling the file from origin/master.

提交回复
热议问题