A simple shell script to automate the procedure of manually creating a github repository to push your local one
Find script's directory and execute it:
someplace/hubinit
Or use a folder in PATH like /usr/local/bin and move the files there
$PATH
so that you can execute it as a command.
hubinit
Navigate to your local repository and run the script e.g.
cd /myProject
someplace/hubinit
Options: -d 'description' Add repository description -n 'repository_name' Repository name, default = current folder -r 'remote_name' Remote name, default = origin -s In case of SSH (working on it) -i 'commit_description' Initialize current folder, add everything and commit
By running hubinit without any flags you need an already initialized local repository you are working with. Then hubinit creates a github repository with current folder's name and pushes everything to an origin remote linked to this repository.