<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/%E7%89%88%E6%9C%AC%E6%8E%A7%E5%88%B6/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 18:47:32 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/%E7%89%88%E6%9C%AC%E6%8E%A7%E5%88%B6/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>如何复原 Git 的变动？已经 commit 的变动还能怎么复原呢？</title><link>https://magiclen.org/cn/git-recovery/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2022/06/git-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/06/git-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/06/git-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/06/git-660x486.png 3x" alt>
在使用 Git 进进程式项目或是其它任何项目的版本控制时，有时候可能会因为一些意外而导致项目发生了不应该出现的变动，这时候要如何利用 Git 来还原呢？在这篇文章中，将会介绍如何用「git checkout」、「git reset」、「git revert」这三种指令来分别处理不同的状况。]]></description><category>研究分享</category><category>软件介绍</category><category>Git</category><category>版本控制</category><guid>https://magiclen.org/cn/git-recovery</guid><pubDate>Tue, 2 Aug 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>