Simple fish script for initializing empty github repository from command line.
Just copy the file to your ~/.config/fish/functions/ directory.
gcreate <username> <repo name> <isPrivate>
example:
gcreate LECZYF GithubCreateRepo false
What it does (hello cpt. Obvious):
- Creates empty dir with repo name, cds to it and initiates git repo.
- Creates repo in github
- Creates devel branch
- Sets upstreams for master and devel
- Pushes initial commit with readme header: 'repo name' by 'username'
Based on GitHub API v3.
Cheers.