Awesome-Python-Scripts/git_automation/.my_commands.sh

18 lines
282 B
Bash
Raw Normal View History

#!/bin/bash
function create() {
cd
source .env
python create.py $1
cd $FILEPATH$1
git init
git remote add origin git@github.com:$USERNAME/$1.git
touch README.md
git add .
git commit -m "Initial commit"
git push -u origin main
code .
}