App::gh::Command::Import - create and import a repository, or add a remote for an existing one.
--name, -n repository name. --description, -d description. --homepage homepage URL. --private to be a private repository. --remote, -r new remote name.
$ cd Foo $ git init # changes $ git add . $ git commit -a -m "First commit" $ gh import # import to github
mkdir Test cd Test git init touch README git add README git commit -m 'first commit' git remote add origin git@github.com:c9s/Test.git git push origin master
Existing Git Repo?
cd existing_git_repo git remote add origin git@github.com:c9s/Test.git git push origin master
To install App::gh, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::gh
CPAN shell
perl -MCPAN -e shell install App::gh
For more information on module installation, please visit the detailed CPAN module installation guide.