From 760caffbcff3fb535fc7edc66381d89d1d5eda27 Mon Sep 17 00:00:00 2001 From: taynpg Date: Thu, 5 Dec 2024 11:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0revert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git-use.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-use.txt b/git-use.txt index a467978..340d0b2 100644 --- a/git-use.txt +++ b/git-use.txt @@ -53,3 +53,8 @@ git checkout commitid -- /path/folder/to 8.git更改分支master为main git branch -M main + +9.回退到某次提交且保留后续提交: +git revert -n xxx +git commit +git push