import

Import code and git history from another repository into this repository.

Usage

nx import [sourceRepository] [destinationDirectory]

Install nx globally to invoke the command directly using nx, or use npx nx, yarn nx, or pnpm nx.

Options

OptionTypeDescription
--depthnumberThe depth to clone the source repository (limit this for faster git clone).
--destinationDirectorystringThe directory in the current workspace to import into.
--helpbooleanShow help.
--interactivebooleanInteractive mode. (Default: true)
--refstringThe branch from the source repository to import.
--sourceDirectorystringThe directory in the source repository to import from.
--sourceRepositorystringThe remote URL of the source to import.
--verbosebooleanPrints additional information about the commands (e.g., stack traces).
--versionbooleanShow version number.