git: symlink/reference to a file in an external repository

前端 未结 3 1463
借酒劲吻你
借酒劲吻你 2020-12-02 09:25

Is it possible in git to have a \"link\" to a particular file in a git repo? Like what git submodules do for folders but my question is about a particular file, not a full d

3条回答
  •  一整个雨季
    2020-12-02 09:48

    Unfortunately, no. The only type of external reference you can have in git is through submodules, which puts the entire branch in a directory. You'll need to create a script or something to help fetch the file from the desired location and put it in your working tree.

提交回复
热议问题