---
title: "git回退到历史版本"
author: "johnsmith9th"
date: "2024-10-25T17:51:37Z"
tags: []
categories: ["开源软件"]
slug: "git"
draft: false
lastmod: "2024-10-25T17:51:37Z"
id: 2540170
url: "https://johnsmith9th.iteye.com/blog/2540170"
---

git reset --hard \*\*\*\*\*\*\*\** （星号部分为回退版本最后提交的hash值)

 

取消回退只要重新pull最新版本即可。