Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added documentation on `hub create`

  • Loading branch information...
commit d098694438db8e7e3af897be5fac1427cb106b8d 1 parent 86abc14
@justinweiss justinweiss authored
Showing with 24 additions and 0 deletions.
  1. +9 −0 README.md
  2. +15 −0 man/hub.1.ronn
View
9 README.md
@@ -166,6 +166,15 @@ Forks the original repo on GitHub and adds the new remote under your
username. It requires your GitHub token to be present; see "GitHub
login" below for details.
+### git create
+
+ $ git create
+ ... hardcore creating action ...
+ > git remote add origin git@github.com:YOUR_USER/CURRENT_REPO.git
+
+Creates a new public github repository and adds the remote `origin` at
+"git@github.com:<USER>/<REPOSITORY>.git"
+
### git init
$ git init -g
View
15 man/hub.1.ronn
@@ -7,6 +7,7 @@ hub(1) -- git + hub = github
`hub alias` [`-s`] <SHELL>
`git init -g` <OPTIONS>
+`git create` [`p`] [`-d <DESCRIPTION>`] [`-h <HOMEPAGE>`]:
`git clone` [`-p`] <OPTIONS> [<USER>/]<REPOSITORY> <DIRECTORY>
`git remote add` [`-p`] <OPTIONS> <USER>[/<REPOSITORY>]
`git fetch` <USER-1>,[<USER-2>,...]
@@ -33,6 +34,14 @@ alias command displays information on configuring your environment:
"git@github.com:<USER>/<REPOSITORY>.git"; <USER> is your GitHub username and
<REPOSITORY> is the current working directory's basename.
+ * `git create` [`p`] [`-d <DESCRIPTION>`] [`-h <HOMEPAGE>`]:
+ Create a new public github repository from the current git
+ repository and add remote `origin` at
+ "git@github.com:<USER>/<REPOSITORY>.git"; <USER> is your GitHub
+ username and <REPOSITORY> is the current working directory's
+ basename. With `-p`, create a private repository. `-d` and `-h`
+ set the repository's description and homepage, respectively.
+
* `git clone` [`-p`] <OPTIONS> [<USER>`/`]<REPOSITORY> <DIRECTORY>:
Clone repository "git://github.com/<USER>/<REPOSITORY>.git" into
<DIRECTORY> as with git-clone(1). When <USER>/ is omitted, assumes
@@ -171,6 +180,12 @@ cloning:
> git init
> git remote add origin git@github.com:YOUR_USER/REPO.git
+### git create
+
+ $ git create
+ ... hardcore creating action ...
+ > git remote add origin git@github.com:YOUR_USER/CURRENT_REPO.git
+
### git push
$ git push origin,staging,qa bert_timeout
Please sign in to comment.
Something went wrong with that request. Please try again.