Share only a subset of a git repository -


I use a git repository for my dotfiles and I want to share it except by leaving some files For example, there are some identifiers) Is there a way to do this with only-shared files without creating another GIT repository?

Thank you in advance for your reply.

Not every repository has all the files in each committed, so the filtered view would have different identifiers .

You can use something like git filter-branch , but it actually copies your branch, for each original committed (if not filtered) one Make new commitments.

This may be a way to automate, so you have a branch that always appears to be your original branch, but without the important files. Then you will push the filtered branch only in some public repositories.

But note that merge your modes based on this resource is not so easy, and possibly each has to apply different patches.

Comments