Keep repositories in sync with upstream.
pip install git+https://github.com/stephan-cr/repo-sync
VCS | repo-type |
---|---|
Git | git |
Mercurial | hg |
Subversion | svn |
A JSON configuration file in $XDG_CONFIG_HOME/sync-repos.conf
is
required and is structured as follows:
[
{
"repo-type": "git",
"dir": "/home/xxx"
},
{
"repo-type": "hg",
"dir": "/home/yyy"
}
]
XDG is used to locate configuration files. If $XDG_CONFIG_HOME
is
not set, it defaults to $HOME/.config
.
Hint: the directory specification may contain the environment variable
$HOME
.