chickadee » git » create-reference

(create-reference repository #!key name target [symbolic] [force]) => referenceprocedure

Creates and returns a new reference in the given repository for the specified name and target. If symbolic is given and not #f, the created reference will be so, and target must be a reference name or reference. Otherwise, target must be a SHA1 string, oid, commit or reference to a commit. If a reference of the given name exists and force is not given or #f, an error is signalled. Otherwise, creation is forced and the old reference will be overwritten.

On success, the on-disk repository is updated immediately.