Skip to content

Instantly share code, notes, and snippets.

@micheam
Last active February 16, 2019 06:59
Show Gist options
  • Save micheam/4cd4f27266cf135af60d13b2b567ea9b to your computer and use it in GitHub Desktop.
Save micheam/4cd4f27266cf135af60d13b2b567ea9b to your computer and use it in GitHub Desktop.
create new github repository via github/hub.
repo_name=something-new
cd `ghq root`/github.com/MichEam
mkdir $repo_name
cd $repo_name
git init
echo "# $repo_name" > README.md
git add . && git commit -m "init commit"
hub create -p "$repo_name"
git push --set-upstream origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment