LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hub-init

Initialize a git repository and add a GitHub remote

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 creates a git repository as with git-init(1) and adds remote "origin" at "git@github.com:USER/REPOSITORY.git". With the -g flag, it also creates the GitHub repository. Typically used with hub create to initialize a local repository and create a matching GitHub repository in one workflow.

PARAMETERS

-g

After initializing, create a "USER/REPO" repository on GitHub and add it as the "origin" remote.
--bare
Create bare repository.
-q, --quiet
Quiet mode.
--template dir
Use template directory.

INSTALL

sudo apt install hub
copy
sudo pacman -S hub
copy
sudo zypper install hub
copy
brew install hub
copy
nix profile install nixpkgs#hub
copy

CAVEATS

Hub is no longer maintained. Consider using git init and gh repo create instead.

SEE ALSO

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid