Fetching
Architect uses Git to fetch remote repositories.
Fetching a remote repository is pretty straightforward, but Architect also supports fetching templates from a local directory.
Architect will either fetch it using Git, using the directory like a remote repository, or copy the directories contents, e.g. if the directory doesn't contain a Git repository.
When fetching from a local directory you can force Architect to copy the contents instead of using
Git using the --dirty
CLI flag. This is particularly useful when you want to
test a template you are creating without having to commit your changes or pushing it to a remote
Git repository.
Embedded Git and Fallback
Architect embeds some Git functionality to have portable way of fetching templates without depending on a local Git installation.
However, some authentication scenarios or other features provided by a proper Git installation are going to be absent, therefore breaking the functionality of Architect.
To circumvent this Architect offers the CLI flag --local-git
which tells Architect to use the local
Git installation instead of the embedded Git functions.