NAME
bif-init-hub - create a new local hub repository
VERSION
0.1.0_27 (2014-09-10)
SYNOPSIS
bif init hub [DIRECTORY] [OPTIONS...]
DESCRIPTION
The bif-init-hub command creates a new local hub repository in DIRECTORY after creating (if necessary) the system-wide user repository. Attempting to initialise an existing repository is considered an error.
bif-init-hub does all of its work through other bif commands. They are wrapped by this command in order to simplify the most common initialization scenario, which on the command-line would look something like this:
#!sh
if [ ! -d $USER_REPO ]; then
bif init repo $USER_REPO
bif new identity --user-repo --self
fi
bif init repo $DIRECTORY
bif show identity 1 --user-repo
bif pull identity $SELF@$USER_REPO --self
bif new hub $BASENAME $DIRECTORY --default
See the FILES section below for the location of $USER_REPO.
ARGUMENTS & OPTIONS
- DIRECTORY
-
The location of the new hub repository.
The global --user-repo
option is ignored by bif-init-hub.
FILES
- $HOME/.bifu/
-
User repository location when not running under a Free Desktop environment.
- $XDG_DATA_HOME/.bifu/
-
User repository location when running under a Free Desktop environment.
SEE ALSO
bif(1)
AUTHOR
Mark Lawrence <nomad@null.net>
COPYRIGHT AND LICENSE
Copyright 2013-2014 Mark Lawrence <nomad@null.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.