Skip to content

Instantly share code, notes, and snippets.

@efatsi

efatsi/simple-github-create Secret

Last active Jan 4, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.