Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

auto git script

#!/bin/bash
function project() {
    cd /home/levicrews
    cp -a /home/levicrews/template-project $1
    python3 create_project.py $1
    cd /home/levicrews/$1
    git init
    git remote add origin git@github.com:levicrews/$1.git
    git add .
    git commit -m "Initial commit"
    git push -u origin master
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #auto #git #script
ADD COMMENT
Topic
Name
7+4 =