pull specific commit/file from git

前端 未结 2 870
夕颜
夕颜 2021-02-08 10:09

I have made two commits in my git repository and push them to my git server

the two commits are

  • In first commit file A is committed
2条回答
  •  长发绾君心
    2021-02-08 10:53

    This doesnt make to much sense - if you commited the files you have them in your repo anyway.

    Maybe this is what you want

    git checkout -- FileAOnly
    

    Or

    git checkout origin/master -- FileAonly
    

提交回复
热议问题