Skip to content

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.

Terminal window
git archimport [ -h ] [-v] [-o] [-a] [-f] [-T] [-D depth] [-t tempdir] <archive/branch> ...
OptionDescription
-hDisplay help and exit
-vBe verbose during import
-oUse original author/modifier in commits
-aAuto-register tapes under $(HOME)/.arch-cache
-fForce branch update if it already exists in Git
-TMany to one mode (for incremental imports)
-D nGo only n levels into the Arch tree
-t dirOverride temporary directory
ParameterDescription
archive/branchArch archive/branch to import
Terminal window
git archimport myproject--main

Imports the specified Arch branch into a new Git repository.

Terminal window
git archimport -v myarchive/mybranch

Shows detailed progress during the import process.

Terminal window
git archimport -f oldproject--stable

Overwrites existing Git branches if they conflict.

Terminal window
git archimport -D 3 myproject--release

Limits 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:

Terminal window
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:

Terminal window
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:

Terminal window
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:

Terminal window
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:

Terminal window
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:

Terminal window
git archimport -o <archive>/<branch>

Applications of the git archimport command

Section titled “Applications of the git archimport command”
  1. Performing a basic import of an Arch repository
  2. Importing with verbose output for progress tracking
  3. Forcing updates to branches that already exist in the Git repository
  4. Limiting the depth of the import from the Arch tree
  5. Specifying a custom temporary directory for the import process
  6. Preserving original author information from Arch commits
  7. Using incremental import mode for ongoing synchronizations