Last active 1725560370

create an opengist via shell

Revision 29534193631f18f4e7e953cbde2bf521a132dfbc

gistfile1.txt Raw
1#! /bin/sh
2
3# create an opengist file and push it to the server
4#
5# alexlehm/at/gmail.com
6
7TMP=git.gist.$$
8
9mkdir $TMP
10
11cp $1 $TMP/
12
13cd $TMP
14git init
15git config credential.helper store
16git add .
17git commit -m "automatic upload"
18# if default branch is main, change to master, otherwise we confuse opengist
19git branch master
20git checkout master
21git remote add origin http://wormhole.axs.de:6157/init
22git push -u origin master
23
24cd ..
25rm -rf $TMP
26
27