archimport Git Command Guide
The git archimport command imports a project from an Arch (tla) repository into Git. It converts Arch branches into Git branches and preserves the history. This is useful for migrating projects from Arch to Git, though Arch is largely obsolete today.
git archimport Syntax:
Section titled “git archimport Syntax:”git archimport [ -h ] [-v] [-o] [-a] [-f] [-T] [-D depth] [-t tempdir] <archive/branch> ...Options:
Section titled “Options:”| Option | Description |
|---|---|
| -h | Display help and exit |
| -v | Be verbose during import |
| -o | Use original author/modifier in commits |
| -a | Auto-register tapes under $(HOME)/.arch-cache |
| -f | Force branch update if it already exists in Git |
| -T | Many to one mode (for incremental imports) |
| -D n | Go only n levels into the Arch tree |
| -t dir | Override temporary directory |
Parameters:
Section titled “Parameters:”| Parameter | Description |
|---|---|
| archive/branch | Arch archive/branch to import |
git archimport Command Samples:
Section titled “git archimport Command Samples:”Import an Arch archive into Git
Section titled “Import an Arch archive into Git”git archimport myproject--mainImports the specified Arch branch into a new Git repository.
Import with verbose output
Section titled “Import with verbose output”git archimport -v myarchive/mybranchShows detailed progress during the import process.
Force update existing branches
Section titled “Force update existing branches”git archimport -f oldproject--stableOverwrites existing Git branches if they conflict.
Limit import depth
Section titled “Limit import depth”git archimport -D 3 myproject--releaseLimits the import to the last 3 levels of the Arch tree.
How do I import an Arch repository using git archimport?
Section titled “How do I import an Arch repository using git archimport?”To import an Arch repository into Git, use the following command:
git archimport <archive>/<branch>How can I make git archimport verbose during import?
Section titled “How can I make git archimport verbose during import?”To get detailed output during the archimport process, execute:
git archimport -v <archive>/<branch>How do I force git archimport to update existing branches?
Section titled “How do I force git archimport to update existing branches?”To force updates to branches that already exist in Git, use:
git archimport -f <archive>/<branch>How can I limit the depth of import with git archimport?
Section titled “How can I limit the depth of import with git archimport?”To limit the number of levels imported from the Arch tree, use:
git archimport -D <number> <archive>/<branch>How do I override the temporary directory for git archimport?
Section titled “How do I override the temporary directory for git archimport?”To specify a custom temporary directory for the import process, use:
git archimport -t <tempdir> <archive>/<branch>How can I use original authors in commits with git archimport?
Section titled “How can I use original authors in commits with git archimport?”To preserve original author information from Arch commits, use:
git archimport -o <archive>/<branch>Applications of the git archimport command
Section titled “Applications of the git archimport command”- Performing a basic import of an Arch repository
- Importing with verbose output for progress tracking
- Forcing updates to branches that already exist in the Git repository
- Limiting the depth of the import from the Arch tree
- Specifying a custom temporary directory for the import process
- Preserving original author information from Arch commits
- Using incremental import mode for ongoing synchronizations