LinuxCommandLibrary

hub-init

same as git init but extended with hub features

TLDR

Initialize repository and create on GitHub

$ hub init && hub create
copy
Initialize with specific directory
$ hub init [directory]
copy

SYNOPSIS

hub init [options] [directory]

DESCRIPTION

hub init is the same as git init but extended with hub features. Typically used with hub create to initialize a local repository and create a matching GitHub repository in one workflow.

PARAMETERS

-g

Create .gitignore with GitHub templates.
--bare
Create bare repository.
-q, --quiet
Quiet mode.
--template dir
Use template directory.

CAVEATS

Hub is deprecated. Consider using git init and gh repo create instead.

SEE ALSO

hub(1), git-init(1), hub-create(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community