git ssb


8+

cel / git-ssb



Add create-id subcommand: %nvorVG9L0cAlXX5V2X5J9IVWncvAqklHnsjBfvy/P2g=.sha256

%U6/IiVXq+bnhmZ00eQi47AlQnv8yglHHdFdpPYHa5FI=.sha256
Closed cel wants to merge commits into master from private
cel · 1/14/2017, 10:23:54 PM

Add create-id subcommand: %nvorVG9...

Usage: git ssb create-id [--name <name> | --no-name] [<options>]

  Create a new git-ssb repo and output its URL.

Options:
  --upstream <id>   id, url, or remote name of repo to create a fork of
  --name <name>     Name to give the repo. Required unless '--no-name' is given
  --no-name         Don't name the repo

This is intended to replace the create subcommand for creating new repos. create-id publishes a git-repo message and then outputs the repo URL to stdout. It does not add the repo URL as a git remote. This is so that it follows better the rule of "do one thing well". Also, it requires a --name <name> option, or --no-name to request creating a repo without a name. It does not auto-set a repo name. This is to reduce confusion/surprise.

Example usage:

Add a remote to an existing repo:

git remote add $(git ssb create-id --name myproject)

Create & clone a new empty repo:

git clone $(git ssb create-id --name coolproject) coolproject
%+NoePWvsSgcBP9LB16HOUl+7TSy/gZkkD6UHlv1fbd4=.sha256 cel · 1/14/2017, 10:25:29 PM

wrong base branch - should be create-id, not private

%ohyydMRw0eHdbpcDnxddaJzei1wmpMXVXK9SMcaaXxo=.sha256 cel closed this pull request · 1/17/2017, 3:20:53 PM

Built with git-ssb-web