mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit c7825499d57693c2011e7ba73d23c631390819f0
parent a2ce8832d6a5d4042b1102d56d692a385cd4fe19
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat,  3 Dec 2022 18:41:28 +0100

Merge branch 'master' of a3nm.net:git/mybin

Diffstat:
initprivgit | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/initprivgit b/initprivgit @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e + +REPO="$1" +REPO_FILTER="${1//\//_}" # replace / by _ + +ssh privgit git init --bare git/${REPO_FILTER}.git +cd ~/git +# create parent directories +mkdir -p "$REPO"; rmdir "$REPO" +git clone privgit:git/${REPO_FILTER}.git "$REPO" +cd "$HOME/git/$REPO" +touch init +git add init +git commit -m init init +git rm init +git commit -m init . +git push +mr reg +cd ~/config/private +git pull +git commit -m 'mrconfig' mrconfig +git push +