Rose Tip: Git installation

As of the recent Rose 2.3.0 release, Rose can now install files/directories from Git repositories (in addition to SVN repositories).

Some example Rose configuration:

# Download the sphinx directory from the master branch of
# the github.com/metomi/rose repo. Note trailing slash.
[file:rose-docs]
source=git:git@github.com:metomi/rose::sphinx/::master

# Extract the whole contents of version 2.0.1 of the local
# repository at /home/user/some/path/to/my/git/repo.
[file:all_of_my_repo]
source=git:/home/user/some/path/to/my/git/repo::./::2.0.1

# Extract a single file from a particular commit of a repo
# on a machine that we have ssh access to.
[file:my_file]
source=git:machine01:/data/user/my_repo_name::etc/my_file::7261bff4d9a6c582ec759ef52c46dd794fe8794e

For more information, see the “File Creation” section of the Rose documentation.

1 Like