Skip to content

A simple shell script to automate the procedure of manually creating a github repository to push your local one

Notifications You must be signed in to change notification settings

chris-bbrs/hubinit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

hubinit

A simple shell script to automate the procedure of manually creating a github repository to push your local one

Running

You need git and expect

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

Usage

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.

About

A simple shell script to automate the procedure of manually creating a github repository to push your local one

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages