The 2git conversion engine

Defining the target

Define a target with the 'git' type, followed by your target identifier (in this case, 'g').

target('git', 'g') {
    /* Configure the target here */
}

Configuring the target

workspace

Defines the migration workspace. This should be the path where the resulting git directory ends up in. Defaults to a new dir in the current working directory.

target('git') {
    workspace 'path/to/git/directory'
}

Optional

ignore

Adds entries to .gitignore.

target('git') {
    ignore '*.tmp', 'foo.txt'
}
user/email

Configures the default repository user/email. Defaults to a placeholder migration user.

target('git') {
    user 'William Spearshake'
    email 'wil@sshake.org'
}
lfs

Tracks entries with Git LFS.

target('git') {
    lfs '*.pdf', '*.iso'
}
longPaths

Sets core.longpaths before the migration.

target('git') {
    longPaths true
}
GitHub issues