# Rose Tip: Git installation

**URL:** <https://cylc.discourse.group/t/rose-tip-git-installation/996>\
**Category:** Rose Announce\
**Created:** [August 5, 2024, 1:32pm UTC](https://cylc.discourse.group/t/rose-tip-git-installation/996 "2024-08-05T13:32:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliver.sanders](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/oliver.sanders/32/110_2.png) [@oliver.sanders](https://cylc.discourse.group/u/oliver.sanders)\
**Post date:** [August 5, 2024, 1:32pm UTC](https://cylc.discourse.group/t/rose-tip-git-installation/996/1 "2024-08-05T13:32:27Z")

</div>

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:

```auto
# 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](https://metomi.github.io/rose/doc/html/api/configuration/file-creation.html)” section of the Rose documentation.
