# How do you reference a base from a Git repository under resources?

Kustomize, Medium (Advanced), Integration. https://k8wiz.com/uquiz/how-do-you-reference-a-base-from-a-git-repository-under-resources

- A. git::github.com/org/repo/path/to/base@v1.2.0
- B. github.com/org/repo/tree/v1.2.0/path/to/base
- C. oci://github.com/org/repo/path/to/base:v1.2.0
- D. https://github.com/org/repo//path/to/base?ref=v1.2.0

**Answer:** https://github.com/org/repo//path/to/base?ref=v1.2.0

**Explanation:** The double slash separates the repository from the directory inside it, and ref picks a branch, tag or commit. Pin ref to a tag or commit so a change in the other repository can't silently change your build.
