---
title: "git某文件放弃本地修改"
author: "johnsmith9th"
date: "2026-08-10T15:43:22Z"
tags: []
categories: ["研发管理"]
slug: "git"
draft: false
lastmod: "2026-08-10T15:43:22Z"
id: 2540581
url: "https://johnsmith9th.iteye.com/blog/2540581"
---

git checkout -- 相对于项目根目录的文件路径