myhome/.local/bin/git-init-folder
Marcin Woźniak b82dc58f26
Added programs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-22 21:27:54 +01:00

12 lines
260 B
Bash
Executable File

#!/bin/bash
mkdir $1
cd $1
git init
touch README.md
git add README.md
git commit -m "first commit"
curl -u 'linux923344' https://api.github.com/user/repos -d '{"name":"'$1'"}'
git remote add origin git@github.com:linux923344/$1.git
git push -u origin master