提交 d0986944 编写于 作者: J Justin Weiss

Added documentation on `hub create`

上级 86abc143
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册