Skip to main content

init

Function init 

Source
pub fn init(mkit_dir: &Path) -> RefResult<()>
Expand description

Initialise the ref directory layout under mkit_dir (the .mkit/ directory). Creates the refs/, refs/heads/, refs/tags/, refs/remotes/ subdirectories and writes a default HEAD = ref: refs/heads/main\n if HEAD does not already exist.