<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>不系之舟</title>
  
  <subtitle>Ada 的技术与心情记录</subtitle>
  <link href="https://blog.yuhaowen.com/atom.xml" rel="self"/>
  
  <link href="https://blog.yuhaowen.com/"/>
  <updated>2024-01-04T16:09:22.428Z</updated>
  <id>https://blog.yuhaowen.com/</id>
  
  <author>
    <name>Ada (Haowen) Yu</name>
    
  </author>
  
  <generator uri="https://hexo.io/">Hexo</generator>
  
  <entry>
    <title>The differences of suffixes of git reset</title>
    <link href="https://blog.yuhaowen.com/2024/01/04/git-reset/"/>
    <id>https://blog.yuhaowen.com/2024/01/04/git-reset/</id>
    <published>2024-01-04T15:47:35.000Z</published>
    <updated>2024-01-04T16:09:22.428Z</updated>
    
    <content type="html"><![CDATA[<h2 id="File-statuses-in-git"><a href="#File-statuses-in-git" class="headerlink" title="File statuses in git"></a>File statuses in git</h2><ul><li>Not Under git version control system</li><li>Modified but remain unstaged</li><li>Staged</li></ul><h2 id="Suffixes-of-git-reset"><a href="#Suffixes-of-git-reset" class="headerlink" title="Suffixes of git reset"></a>Suffixes of git reset</h2><h3 id="–hard"><a href="#–hard" class="headerlink" title="–hard"></a>–hard</h3><p>Dangerous operation. All changes (including staged and unstaged) between the current commit and the target commit will be discarded.</p><h3 id="–mixed"><a href="#–mixed" class="headerlink" title="–mixed"></a>–mixed</h3><p>Moderate operation. All changes (Including staged and unstaged) between the current commit and the target commit will be reserved. However, staged and unstaged changes will both become unstaged.</p><h3 id="–soft"><a href="#–soft" class="headerlink" title="–soft"></a>–soft</h3><p>Conservative operation. All changes (including staged and unstaged) between the current commit and the target commit will be reserved. While staged changes will remain staged, unstaged changes will remain unstaged.</p><p>Changes of files that are not under git version control system will not be affected by this command. That is to say, whether we use <code>git reset --hard</code>, <code>git reset --mixed</code>, or <code>git reset --soft</code> those changes will not be erased.</p>]]></content>
    
    
      
      
    <summary type="html">&lt;h2 id=&quot;File-statuses-in-git&quot;&gt;&lt;a href=&quot;#File-statuses-in-git&quot; class=&quot;headerlink&quot; title=&quot;File statuses in git&quot;&gt;&lt;/a&gt;File statuses in git&lt;/h2&gt;&lt;</summary>
      
    
    
    
    <category term="技术文章" scheme="https://blog.yuhaowen.com/categories/%E6%8A%80%E6%9C%AF%E6%96%87%E7%AB%A0/"/>
    
    
    <category term="Git" scheme="https://blog.yuhaowen.com/tags/git/"/>
    
  </entry>
  
  <entry>
    <title>加我微信</title>
    <link href="https://blog.yuhaowen.com/2023/06/11/wechat/"/>
    <id>https://blog.yuhaowen.com/2023/06/11/wechat/</id>
    <published>2023-06-11T00:47:35.000Z</published>
    <updated>2024-01-04T15:53:36.775Z</updated>
    
    <content type="html"><![CDATA[<p>想加我微信吗？</p><p>很多人私信要我的微信号，现在我将微信号公开出来。作为即将踏入社会的程序媛，我也渴望结识一些志同道合的小伙伴，一起探讨、交流。如果你也对编程充满热情，期待结交一位热心的编程伙伴，那么不妨加我微信。</p><p>我的微信号仅包含小写字母，没有数字或特殊符号。你如果在我的微信号后面添加：</p><p><code>suaC1KQbM7PeYpF4p5vlhvfDgban1T0bPvSbN1Mi</code></p><p>然后计算连接后的字符串的 SHA-1 摘要，得到的结果 Base64 编码之后将是：</p><p><code>2nU83IRk8VBzKDJX9SlxPIzaqgg=</code></p><p>请在添加时备注“来自不系之舟博客”。我期待与你一同成为好朋友，不仅可以分享技术上的经验和见解，还可以畅所欲言，聊聊人生、理想、兴趣爱好等。</p>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;想加我微信吗？&lt;/p&gt;
&lt;p&gt;很多人私信要我的微信号，现在我将微信号公开出来。作为即将踏入社会的程序媛，我也渴望结识一些志同道合的小伙伴，一起探讨、交流。如果你也对编程充满热情，期待结交一位热心的编程伙伴，那么不妨加我微信。&lt;/p&gt;
&lt;p&gt;我的微信号仅包含小写字母，没有数字</summary>
      
    
    
    
    <category term="日常生活" scheme="https://blog.yuhaowen.com/categories/%E6%97%A5%E5%B8%B8%E7%94%9F%E6%B4%BB/"/>
    
    
    <category term="加我微信" scheme="https://blog.yuhaowen.com/tags/%E5%8A%A0%E6%88%91%E5%BE%AE%E4%BF%A1/"/>
    
  </entry>
  
  <entry>
    <title>主页</title>
    <link href="https://blog.yuhaowen.com/2023/03/17/hello-world/"/>
    <id>https://blog.yuhaowen.com/2023/03/17/hello-world/</id>
    <published>2023-03-17T10:10:01.000Z</published>
    <updated>2024-01-04T15:54:27.754Z</updated>
    
    <content type="html"><![CDATA[<p>在这个快节奏的时代，有一位名叫 Ada 的女孩子，热爱编程，热爱生活。她用诗意的笔触，在博客里记录着自己的点滴，用生活中的美好去浇灌技术之花。</p><p>Ada 的博客，就像一个温暖的小窝，她在这里，用她的文字，分享着她的所思所想，记录下自己在编程上的探索和体验，也用她的心灵，去品味生命的美好和感悟生活的真谛。这里不仅仅是一个技术博客，更是一个充满温情的空间，她把日常的点点滴滴和技术的探索结合在一起，呈现出一个充满诗意和情感的世界。</p><p><img src="/images/ada.jpg" alt="荷香袭人，风吹发丝，湖水悠悠，Ada 仿佛置身仙境。"></p><p>让我们跟随 Ada，一起探索技术和生命的奥秘，让我们在她的博客中，找到生活的美好和技术的真谛。</p><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">package</span> com.yuhaowen.apps.hello;</span><br><span class="line"></span><br><span class="line"><span class="comment">// Welcome to Ada&#x27;s Blog.</span></span><br><span class="line"><span class="keyword">class</span> <span class="title class_">AdaBlog</span> &#123;</span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">static</span> AdaBlog instance;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="title function_">AdaBlog</span><span class="params">()</span> &#123;&#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> AdaBlog <span class="title function_">getInstance</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="keyword">if</span> (instance == <span class="literal">null</span>) &#123;</span><br><span class="line">            instance = <span class="keyword">new</span> <span class="title class_">AdaBlog</span>();</span><br><span class="line">        &#125;</span><br><span class="line">        <span class="keyword">return</span> instance;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">void</span> <span class="title function_">writeBlog</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="comment">// This is a template method that calls three methods to add different</span></span><br><span class="line">        <span class="comment">// sections to the blog</span></span><br><span class="line">        addPoetry();</span><br><span class="line">        addTechnicalSkills();</span><br><span class="line">        addLifeExperience();</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">void</span> <span class="title function_">addPoetry</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="comment">// Add poetic section</span></span><br><span class="line">        System.out.println(<span class="string">&quot;In this world of code, she weaves a poetic &quot;</span></span><br><span class="line">                + <span class="string">&quot;tapestry with her words.&quot;</span>);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">void</span> <span class="title function_">addTechnicalSkills</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="comment">// Add technical section</span></span><br><span class="line">        System.out.println(<span class="string">&quot;She shares some insights and coding tips gained &quot;</span></span><br><span class="line">                + <span class="string">&quot;from her technical explorations.&quot;</span>);</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">void</span> <span class="title function_">addLifeExperience</span><span class="params">()</span> &#123;</span><br><span class="line">        <span class="comment">// Add life section</span></span><br><span class="line">        System.out.println(<span class="string">&quot;She also talks about her reflections on life and &quot;</span></span><br><span class="line">                + <span class="string">&quot;beautiful things, creating a warm space for her readers.&quot;</span>);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line"></span><br><span class="line"><span class="keyword">public</span> <span class="keyword">class</span> <span class="title class_">Main</span> &#123;</span><br><span class="line">    <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title function_">main</span><span class="params">(String[] args)</span> &#123;</span><br><span class="line">        <span class="type">AdaBlog</span> <span class="variable">blog</span> <span class="operator">=</span> AdaBlog.getInstance();</span><br><span class="line">        blog.writeBlog();</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>]]></content>
    
    
      
      
    <summary type="html">&lt;p&gt;在这个快节奏的时代，有一位名叫 Ada 的女孩子，热爱编程，热爱生活。她用诗意的笔触，在博客里记录着自己的点滴，用生活中的美好去浇灌技术之花。&lt;/p&gt;
&lt;p&gt;Ada 的博客，就像一个温暖的小窝，她在这里，用她的文字，分享着她的所思所想，记录下自己在编程上的探索和体验，也用她</summary>
      
    
    
    
    <category term="主页" scheme="https://blog.yuhaowen.com/categories/%E4%B8%BB%E9%A1%B5/"/>
    
    
    <category term="主页" scheme="https://blog.yuhaowen.com/tags/%E4%B8%BB%E9%A1%B5/"/>
    
  </entry>
  
</feed>
