Skip to content

Commit f20de11

Browse files
committed
Site updated: 2025-03-15 14:32:47
1 parent a35e17b commit f20de11

82 files changed

Lines changed: 7299 additions & 6233 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ComputerScience/基本操作/Huorong使用/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ <h1 class="post-title" itemprop="name headline">
253253

254254
<div class="post-nav">
255255
<div class="post-nav-item">
256-
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/Computer%20Organization&Design%E5%AD%A6%E4%B9%A0%E8%AE%B0%E5%BD%95/" rel="prev" title="Computer Organization&Design学习记录">
256+
<a href="/ComputerScience/%E7%9F%A5%E8%AF%86/Computer%20Organization&Design%E5%AD%A6%E4%B9%A0%E8%AE%B0%E5%BD%95/" rel="prev" title="Computer Organization&Design学习记录">
257257
<i class="fa fa-angle-left"></i> Computer Organization&Design学习记录
258258
</a>
259259
</div>

ComputerScience/基本操作/Listary使用/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ <h1 id="启动应用"><a class="markdownIt-Anchor" href="#启动应用"></a> 启
380380

381381
<div class="post-nav">
382382
<div class="post-nav-item">
383-
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/Spring/Spring%20Framework/" rel="prev" title="Spring Framework">
383+
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/%E6%A1%86%E6%9E%B6/Spring/Spring%20Framework/" rel="prev" title="Spring Framework">
384384
<i class="fa fa-angle-left"></i> Spring Framework
385385
</a>
386386
</div>

ComputerScience/基本操作/Makefile使用/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ <h1 id="变量"><a class="markdownIt-Anchor" href="#变量"></a> 变量</h1>
276276

277277
<div class="post-nav">
278278
<div class="post-nav-item">
279-
<a href="/ComputerScience/%E9%A1%B9%E7%9B%AE/ICS%20PA%E5%AE%9E%E9%AA%8C%E8%AF%BE/" rel="prev" title="ICS PA实验课">
279+
<a href="/ComputerScience/%E8%AF%BE%E7%A8%8B/ICS%20PA%E5%AE%9E%E9%AA%8C%E8%AF%BE/" rel="prev" title="ICS PA实验课">
280280
<i class="fa fa-angle-left"></i> ICS PA实验课
281281
</a>
282282
</div>

ComputerScience/基本操作/Maven使用/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ <h1 class="post-title" itemprop="name headline">
252252
</a>
253253
</div>
254254
<div class="post-nav-item">
255-
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/MarsCode%20%E9%94%99%E9%A2%98%E6%9C%AC/" rel="next" title="MarsCode 错题本">
255+
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/%E9%94%99%E9%A2%98%E6%9C%AC/MarsCode%20%E9%94%99%E9%A2%98%E6%9C%AC/" rel="next" title="MarsCode 错题本">
256256
MarsCode 错题本 <i class="fa fa-angle-right"></i>
257257
</a>
258258
</div>

ComputerScience/基本操作/Mybatis使用/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,12 @@ <h2 id="if"><a class="markdownIt-Anchor" href="#if"></a> if</h2>
293293

294294
<div class="post-nav">
295295
<div class="post-nav-item">
296-
<a href="/ComputerScience/%E8%AF%BE%E7%A8%8B/DP%20%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" rel="prev" title="DP 设计模式">
296+
<a href="/ComputerScience/%E7%9F%A5%E8%AF%86/DP%20%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" rel="prev" title="DP 设计模式">
297297
<i class="fa fa-angle-left"></i> DP 设计模式
298298
</a>
299299
</div>
300300
<div class="post-nav-item">
301-
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/JavaWeb%E7%AC%94%E8%AE%B0/" rel="next" title="JavaWeb笔记">
301+
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/%E6%A1%86%E6%9E%B6/JavaWeb%E7%AC%94%E8%AE%B0/" rel="next" title="JavaWeb笔记">
302302
JavaWeb笔记 <i class="fa fa-angle-right"></i>
303303
</a>
304304
</div>

ComputerScience/基本操作/Redis使用/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ <h1 id="乐观锁"><a class="markdownIt-Anchor" href="#乐观锁"></a> 乐观锁
294294
</a>
295295
</div>
296296
<div class="post-nav-item">
297-
<a href="/ComputerScience/%E8%AF%BE%E7%A8%8B/DP%20%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" rel="next" title="DP 设计模式">
297+
<a href="/ComputerScience/%E7%9F%A5%E8%AF%86/DP%20%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" rel="next" title="DP 设计模式">
298298
DP 设计模式 <i class="fa fa-angle-right"></i>
299299
</a>
300300
</div>

ComputerScience/基本操作/Regular Expression 正则表达式/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ <h1 id="举例"><a class="markdownIt-Anchor" href="#举例"></a> 举例</h1>
274274
</a>
275275
</div>
276276
<div class="post-nav-item">
277-
<a href="/ComputerScience/%E9%A1%B9%E7%9B%AE/ICS5%20PA/" rel="next" title="ICS5 PA">
277+
<a href="/ComputerScience/%E8%AF%BE%E7%A8%8B/ICS5%20PA/" rel="next" title="ICS5 PA">
278278
ICS5 PA <i class="fa fa-angle-right"></i>
279279
</a>
280280
</div>

ComputerScience/基本操作/Shell终端使用/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ <h2 id="默认启动tmux"><a class="markdownIt-Anchor" href="#默认启动tmux">
364364
</a>
365365
</div>
366366
<div class="post-nav-item">
367-
<a href="/ComputerScience/%E7%9F%A5%E8%AF%86/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/" rel="next" title="数据结构">
368-
数据结构 <i class="fa fa-angle-right"></i>
367+
<a href="/ComputerScience/%E6%8C%87%E5%8D%97/Markdown%E6%A8%A1%E6%9D%BF/" rel="next" title="Markdown模板">
368+
Markdown模板 <i class="fa fa-angle-right"></i>
369369
</a>
370370
</div>
371371
</div>

ComputerScience/基本操作/Windows scripts使用/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ <h1 id="静默运行脚本"><a class="markdownIt-Anchor" href="#静默运行脚
261261
</a>
262262
</div>
263263
<div class="post-nav-item">
264-
<a href="/ComputerScience/%E9%A1%B9%E7%9B%AE/ThinkPHP%206/" rel="next" title="ThinkPHP 6">
264+
<a href="/ComputerScience/%E7%AC%94%E8%AE%B0/%E6%A1%86%E6%9E%B6/ThinkPHP%206/" rel="next" title="ThinkPHP 6">
265265
ThinkPHP 6 <i class="fa fa-angle-right"></i>
266266
</a>
267267
</div>

ComputerScience/基本操作/git使用/index.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<meta property="og:description" content="0.0 代码合并流程 在各自的分支self上进行开发 切换到develop分支,git pull --rebase同步最新代码 不要使用Git Pull git pull会创建一个新的merge commit,这样提交历史不是一条清晰的线,包含无意义的分支合并,非常混乱。 而git pull --rebase会解决这个问题,这个命令首先把你的commit放到一边,拉取最新分支状态,最后为你">
2929
<meta property="og:locale" content="zh_CN">
3030
<meta property="article:published_time" content="2023-11-08T16:00:00.000Z">
31-
<meta property="article:modified_time" content="2025-03-13T02:56:18.414Z">
31+
<meta property="article:modified_time" content="2025-03-15T02:22:18.738Z">
3232
<meta property="article:author" content="SIMULEITE">
3333
<meta property="article:tag" content="基本操作">
3434
<meta name="twitter:card" content="summary">
@@ -223,7 +223,7 @@ <h1 class="post-title" itemprop="name headline">
223223
<i class="far fa-calendar-check"></i>
224224
</span>
225225
<span class="post-meta-item-text">更新于</span>
226-
<time title="修改时间:2025-03-13 10:56:18" itemprop="dateModified" datetime="2025-03-13T10:56:18+08:00">2025-03-13</time>
226+
<time title="修改时间:2025-03-15 10:22:18" itemprop="dateModified" datetime="2025-03-15T10:22:18+08:00">2025-03-15</time>
227227
</span>
228228

229229

@@ -249,6 +249,9 @@ <h1 class="post-title" itemprop="name headline">
249249
<ol start="3">
250250
<li>切换到自己的分支<code>self</code><code>git rebase develop</code>对齐代码合并冲突</li>
251251
</ol>
252+
<blockquote>
253+
<p>分支是临时的,完成了分支的职责后,就删除此分支。不要重复用分支,而是从主分支再创建一条特性分支。</p>
254+
</blockquote>
252255
<h1 id="10-第一件事git-config"><a class="markdownIt-Anchor" href="#10-第一件事git-config"></a> 1.0 第一件事git config</h1>
253256
<ul>
254257
<li><code>git config --list --show-origin</code>查看所有git配置以及所在文件</li>
@@ -293,12 +296,19 @@ <h2 id="41-提交历史"><a class="markdownIt-Anchor" href="#41-提交历史"></
293296
<li><code>git log</code> 查看日志</li>
294297
<li><code>git log --pretty=oneline</code> 简单日志,每次提交只有附带注释的一行</li>
295298
</ul>
299+
<blockquote>
300+
<p><code>git log --oneline</code> 更简洁的日志</p>
301+
</blockquote>
296302
<h2 id="42-撤销"><a class="markdownIt-Anchor" href="#42-撤销"></a> 4.2 撤销</h2>
297303
<h3 id="放弃修改"><a class="markdownIt-Anchor" href="#放弃修改"></a> 放弃修改</h3>
298304
<ul>
299305
<li><code>git restore .</code>:撤销未commit的修改。 git2.32版本后<strong>取代</strong> <code>git reset</code> 进行许多撤销操作</li>
300306
<li><code>git restore &lt;file_name&gt;</code>: 将暂存区的修改重新放回工作区(<code>--staged</code><strong>将包括对文件自身的操作,如添加文件、删除文件</strong></li>
301307
</ul>
308+
<blockquote>
309+
<p><code>git restore</code><code>git add</code> 相反,从索引恢复到工作区<br />
310+
<code>git restore --stage</code><code>git commit</code> 相反,从数据库恢复到工作区</p>
311+
</blockquote>
302312
<h3 id="切换旧版本"><a class="markdownIt-Anchor" href="#切换旧版本"></a> 切换旧版本</h3>
303313
<ul>
304314
<li><code>git checkout &lt;editon_id&gt;</code>:恢复旧版本,会离开main分支,分离头指针,需要 <code>git switch -</code> 回到main分支</li>
@@ -328,9 +338,14 @@ <h2 id="远端操作"><a class="markdownIt-Anchor" href="#远端操作"></a> 远
328338
</ul>
329339
<h1 id="60-分支"><a class="markdownIt-Anchor" href="#60-分支"></a> 6.0 分支</h1>
330340
<ul>
331-
<li><code>git branch &lt;name&gt;</code>: 创建分支</li>
332-
<li><code>git checkout &lt;name&gt;</code> 转到分支name, <code>-b</code>(brach)创建新分支name</li>
333-
<li><code>git merge &lt;brach_name&gt;</code>: 合并到当前分支</li>
341+
<li><code>git branch &lt;branch_name&gt;</code>: 创建分支</li>
342+
</ul>
343+
<blockquote>
344+
<p><code>git swtich (-c) &lt;branch_name&gt;</code> 比checkout更严格、更安全</p>
345+
</blockquote>
346+
<ul>
347+
<li><code>git checkout &lt;branch_name&gt;</code> 转到分支branch_name, <code>-b</code>(brach)创建新分支branch_name</li>
348+
<li><code>git merge &lt;branch_name&gt;</code>: 合并到当前分支</li>
334349
</ul>
335350
<h1 id="70-gitigore"><a class="markdownIt-Anchor" href="#70-gitigore"></a> 7.0 gitigore</h1>
336351
<h2 id="-code5-"><a class="markdownIt-Anchor" href="#-code5-"></a> <figure class="highlight plaintext"><table><tr><td class="code"><pre><span class="line"># 所有.c文件</span><br><span class="line">*.c </span><br><span class="line"># 所有chapter*/eg/文件夹的文件</span><br><span class="line">chapter*/eg/ </span><br><span class="line"># 所有子目录下的.class文件</span><br><span class="line">**/*.class </span><br><span class="line"># 不忽略hello.c文件</span><br><span class="line">!hello.c </span><br></pre></td></tr></table></figure></h2>

0 commit comments

Comments
 (0)