new script: sane-git-init

This commit is contained in:
colin 2022-12-21 08:40:22 +00:00
parent 65777c70ad
commit fac661af15
2 changed files with 16 additions and 0 deletions

View File

@ -27,6 +27,7 @@ resholve.mkDerivation {
duplicity
file
findutils
git
gnugrep
gnused
gocryptfs
@ -75,6 +76,7 @@ resholve.mkDerivation {
# list of programs which *can* or *cannot* exec their arguments
execer = with pkgs; [
"cannot:${duplicity}/bin/duplicity"
"cannot:${git}/bin/git"
"cannot:${gocryptfs}/bin/gocryptfs"
"cannot:${ifuse}/bin/ifuse"
"cannot:${iwd}/bin/iwctl"

View File

@ -0,0 +1,14 @@
#!/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"