2026-04-02 23:12:36 +08:00

26 lines
314 B
Markdown

---
title: gitpull提示stash
createTime: 2022/04/18
tags:
- git
categories:
- 随记
---
## Git: pull 时提示 Please commit your changes or stash them before you merge
1. 保留本地更改
```bash
git stash
git pull
git stash pop
```
2. 不保留本地更改
```bash
git reset --hard
git pull
```