-
-
Save efatsi/58566bcc900d50e42d49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-create() { | |
if [ $1 ] | |
then | |
repo_name=$1 | |
else | |
echo "Repo name?" | |
read repo_name | |
fi | |
curl -u 'efatsi:MY_PERSONAL_ACCESS_TOKEN' https://api.github.com/user/repos -d '{"name":"'$repo_name'"}' | |
git remote add origin git@github.com:efatsi/$repo_name.git | |
git push -u origin master | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment