hakoerber / git-repo-manager

A git tool to manage worktrees and integrate with GitHub and GitLab
https://hakoerber.github.io/git-repo-manager/
GNU General Public License v3.0
67 stars 9 forks source link

Worktree-specific config #15

Closed hakoerber closed 2 years ago

hakoerber commented 2 years ago

A TOML in the root of a worktree like this:

persistent_branches = [
    "master",
    "develop",
]

[track]
default = true
default_remote = "origin"
default_prefix = "myprefix"

persistent_branches will be used for:

default_track will automatically add a tracking branch on grm wt add. By default, it will track origin/{branchname}. The remote can be configured with default_track_remote, and a prefix can be given with default_track_remote. Prefix is used like {remote}/{prefix}/{branchname}