---
title: "gql 5"
description: "```gql query { git(url: \"https://github.com/dagger/dagger\", keepGitDir: true) { branch(name: \"main\") { tree { file(path: \".git/refs/heads/main\") { contents } } } } } ```"
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/gql-5
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:25:03.397Z
license: CC-BY-4.0
attribution: "gql 5 — Claudary (https://claudary.paisolsolutions.com/skills/gql-5)"
---

# gql 5
```gql query { git(url: "https://github.com/dagger/dagger", keepGitDir: true) { branch(name: "main") { tree { file(path: ".git/refs/heads/main") { contents } } } } } ```

## Overview

```gql
query {
  git(url: "https://github.com/dagger/dagger", keepGitDir: true) {
    branch(name: "main") {
      tree {
        file(path: ".git/refs/heads/main") {
          contents
        }
      }
    }
  }
}
```

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/gql-5) · https://claudary.paisolsolutions.com
