git: How do you add an external directory to the repository?

前端 未结 8 1832
旧巷少年郎
旧巷少年郎 2020-12-02 10:16

I want to add an external directory to an existing repository.

External Dir: /home/some/directory

Working Dir: /htdocs/.git

If I attempt the followin

8条回答
  •  旧巷少年郎
    2020-12-02 10:48

    Or you can use submodule if you want to work across different git repos (ln doesn't work in this way). Try 'man git-submodule'.

提交回复
热议问题