---
title: "Shallow clone repo เก่า"
description: "ถ้าไม่ต้องการประวัติ git ทั้งหมดของ repo ที่จะทำงานด้วย ให้ระบุ depth ตอน clone เพื่อดึงมาแค่ x revision"
canonical: https://oozou.com/til/shallow-clone-a-old-repo-2
locale: th
date: 2020-10-13
topic: shell
---

# Shallow clone repo เก่า

> ถ้าไม่ต้องการประวัติ git ทั้งหมดของ repo ที่จะทำงานด้วย ให้ระบุ depth ตอน clone เพื่อดึงมาแค่ x revision

Published: 2020-10-13 · Topic: [shell](https://oozou.com/th/til-topics/shell) ([markdown](https://oozou.com/th/til-topics/shell.md))

ถ้าไม่ต้องการประวัติ git ทั้งหมดของ repo ที่จะทำงานด้วย ให้ระบุ depth ตอน clone เพื่อดึงมาแค่ x revision

*git clone --depth=1 https://github.com/my/repo.git*

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/th/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
