# git update-ref

say it: **“GIT up-DAYT REF”** **/ɡɪt ʌpˈdeɪt ˈrɛf/**

Safely creates, updates, or deletes references while checking expected values when requested.

## What does **git update-ref** do?

**git update-ref** — Safely creates, updates, or deletes references while checking expected values when requested.

```bash
git update-ref refs/heads/archive HEAD
```

Level: Freelancer · [More Git terms at this level](https://www.ask-codey.com/glossary?category=git&level=4)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/git-update-ref
