0

I'm tracking several GitHub repositories, from which I often fetch configuration files for tools like mpv and hyprland. Given that these repositories frequently receive updates, I'm seeking a more efficient process to pull the latest changes without manually inspecting each repository and merging with my custom changes.

Current Process:

  1. Subscribe to changes on these repositories.
  2. Manually download the updated config files.
  3. Compare old and new config files (figure out what thing i chaged in which config, which was changed by developer)
  4. Resolve conflicts manually.
  5. Repeat this cycle.

Repositories (for reference, there are many more):

This problem isn't new but i can't find any reference to this. Maybe i can't phrase it correctly.Does anyone have any strategies, scripts or tools help streamline this process? I'd like to be able to easily pull updates, see differences, and manage conflicts more efficiently.

1 Answer 1

0

These are all git repositories. So IMO the right thing to do is use Git for your changes. So:

  1. Keep your changes in a commit on top of master/main/whatever branch, or multiple commits in another branch (depending on how many changes and what kind of changes you make).
  2. Update master/main/whatever and rebase your changes on latest commit. Git will then either merge the changes automatically where it can or fall back to the shell where you can use git mergetool. Then you'll be able to easily tell which changes are yours and which came from upstream.
2
  • but these are different git repositories, even if i clone them, i will end up with n number of repositories and will need to run git pull --rebase on each one of them. I am thinking of using stow, chezmoi or barerepo after reading more about them. How can i have all these repo in single directory, so when i do git pull - every n repositories get pulled and rebased? Commented Oct 12, 2023 at 3:49
  • 1
    @Phoenix you can put them all inside one repo as submodules, then use git submodule update --remote to update them all in one go. Commented Oct 12, 2023 at 3:58

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.