diff --git a/README.md b/README.md index 5ec0b15..7e6497b 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ _Inspired by [jbranchaud/til](https://github.com/jbranchaud/til)_ ### git - [clone to worktree](./git/clone-to-worktree.md) +- [push to multiple servers](./git/push-to-multiple-servers.md) ### neovim diff --git a/git/push-to-multiple-servers.md b/git/push-to-multiple-servers.md new file mode 100644 index 0000000..881dccf --- /dev/null +++ b/git/push-to-multiple-servers.md @@ -0,0 +1,9 @@ +# Push to multiple servers + +Add new `pushurl`s to `.git/config` under the origin remote. + + [remote "origin"] + url = https://git.xsfx.dev/xsteadfastx/til.git + pushurl = https://git.xsfx.dev/xsteadfastx/til.git + pushurl = https://github.com/xsteadfastx/til.git + fetch = +refs/heads/*:refs/remotes/origin/*