Made script for easy git init

This commit is contained in:
Dreaded_X 2014-09-28 23:37:28 +02:00
parent db8967758b
commit 05784a3218

17
proinit Executable file
View File

@ -0,0 +1,17 @@
#!/bin/zsh
# Checking if url is specified
if [ -z "$1" ]; then echo "Please specify url."; exit; fi;
# Making src directory and README.md
mkdir src
touch README.md
echo "#$(basename $PWD)" >> README.md
# Initializing git and making first commit
git init
git add .
git commit -m "Initial commit"
# Set origin and push the first commit
git remote add origin $1;
git push -u origin master;