nix-files/pkgs/additional/sane-scripts/src/sane-git-init

15 lines
351 B
Plaintext
Raw Normal View History

2022-12-21 08:40:22 +00:00
#!/usr/bin/env bash
set -x
# initialize a repository with each of my machines configured as remotes.
# it's assumed each machine stores the repo at the same fs path
path=$PWD
git init
git remote add desko "colin@desko:$path"
git remote add lappy "colin@lappy:$path"
git remote add moby "colin@moby:$path"
git remote add servo "colin@servo:$path"