Skip to content

Share file in root of multiple repositories #1978

@George-Ogden

Description

@George-Ogden

Firstly, I would like to apologise if this is a duplicate or if there is a way to solve this problem that I am not aware of.

Git submodules allow you to share folders between repositories. However, I would like to have a way to share files between repos that are in the root. An example would be having a .pre-commit-config.yaml template. When I add a new hook or update a version, I need to do it in all my repositories that use that template. I would have a submodule with this config, but the file must be in the root. This problem also exists for other types of configuration files used across machines.

There are other solutions to this, but I would appreciate it if there were a way to do it within git.

Many thanks for your hard work maintaining an awesome tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions