<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>GitHub - 标签 - ISLAND</title><link>https://youngxhui.top/tags/github/</link><description>GitHub - 标签 - ISLAND</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>youngxhui@gmail.com (youngxhui)</managingEditor><webMaster>youngxhui@gmail.com (youngxhui)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Sun, 30 Apr 2017 20:49:21 +0000</lastBuildDate><atom:link href="https://youngxhui.top/tags/github/" rel="self" type="application/rss+xml"/><item><title>Git教程及使用经验</title><link>https://youngxhui.top/2017/04/git%E6%95%99%E7%A8%8B%E5%8F%8A%E4%BD%BF%E7%94%A8%E7%BB%8F%E9%AA%8C/</link><pubDate>Sun, 30 Apr 2017 20:49:21 +0000</pubDate><author><name>youngxhui</name></author><guid>https://youngxhui.top/2017/04/git%E6%95%99%E7%A8%8B%E5%8F%8A%E4%BD%BF%E7%94%A8%E7%BB%8F%E9%AA%8C/</guid><description><![CDATA[<h2 id="前言" class="headerLink">
    <a href="#%e5%89%8d%e8%a8%80" class="header-mark"></a>前言</h2><p>经过一周的准备，完成了 Git 的一些使用经验及教程。</p>
<p>主要是从命令行的角度来讲解。</p>
<h2 id="git-是什么" class="headerLink">
    <a href="#git-%e6%98%af%e4%bb%80%e4%b9%88" class="header-mark"></a>Git 是什么</h2><p>git 在维基百科上的解释是这样的</p>
<blockquote>
  <p>git是一个分布式版本控制软件，最初由林纳斯·托瓦兹（Linus Torvalds）创作，于2005年以GPL发布。最初目的是为更好地管理Linux内核开发而设计。应注意的是，这与GNU Interactive Tools（一个类似Norton Commander界面的文件管理器）有所不同。</p>

</blockquote><p>在我看来 Git 是一个 版本控制工具 和 团队协作 软件。</p>
<h2 id="git-版本控制" class="headerLink">
    <a href="#git-%e7%89%88%e6%9c%ac%e6%8e%a7%e5%88%b6" class="header-mark"></a>Git 版本控制</h2><p>简单的使用看这个博客 <a href="http://youngxhui.github.io/2016/08/13/Git%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/" target="_blank" rel="noopener noreferrer">Git教程操作</a></p>
<p>这个博客会在这个基础上更加详细的讲解命令行的使用，以及一些操作原理。</p>
<h3 id="git-status" class="headerLink">
    <a href="#git-status" class="header-mark"></a>git status</h3><p>当我们通过 <code>git add</code> 命令添加文件到 git 中的时候，可以通过 <code>git status</code> 来了解当前代码库的情况。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/git%20status.png'     ></p>
<p>通过 <code>git status</code>这个命令我们可以知道当前代码库的状态</p>
<h3 id="git-add--" class="headerLink">
    <a href="#git-add--" class="header-mark"></a>git add -?</h3><p>为什么每次都要使用 <code>git add</code> 把修改文件添加，之后在提交。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/git%E4%BB%93%E5%BA%93.png'     ></p>
<p>这就是 git 的一个原理图。</p>
<p>git 工作时候分为工作区和版本库。工作区就是我们自己本地编辑的区域。而代码库又有一个 暂存区/缓存区。我们每次提交版本(<code>commit</code>) 都是在暂存区向代码库提交。所以我们每次都要通过 <code>add</code> 命令进行对修改的添加。</p>
<p>在给 git 添加文件的时候，我们使用的是 <code>git add &lt;filename&gt;</code>,但是当我们要添加大量的文件的时候，采用 <code>git add</code> 不仅浪费时间，而且还容易出错。此时我们使用 <code>git add -A</code> 会把所更改(包括文件的添加，删除，修改)的文件添加到代码库中。</p>
<p><code>git add -i</code> 会进入一个命令的子系统，提供我们选择。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/git%20add%20-i.png'     ></p>
<h3 id="git-diff" class="headerLink">
    <a href="#git-diff" class="header-mark"></a>git diff</h3><p><code>git diff</code> 是一个比较代码的命令，如果不加参数表示本次和上一次的比较。我们可以添加要比较的两个版本的哈希值。</p>
<p><code>git diff 01df58 6e1baa</code></p>
<h2 id="git-协作开发" class="headerLink">
    <a href="#git-%e5%8d%8f%e4%bd%9c%e5%bc%80%e5%8f%91" class="header-mark"></a>Git 协作开发</h2><p>之前的 Git 是用来用做简单的 版本控制，记录了每一个版本。下面我们进行团队协作开发。</p>
<h3 id="git-分支" class="headerLink">
    <a href="#git-%e5%88%86%e6%94%af" class="header-mark"></a>Git 分支</h3><p>当一个人开发功能 A 而另一个人开发功能 B ，之后代码进行整合的时候，使代码既有功能 A 也有功能 B 。在 Git 中，Git 给了我们分支的概念。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/git%20branch-a.png'     ></p>
<p>分支可以使用我们快速的开发协作，并且快速的合并。</p>
<h3 id="分支的使用" class="headerLink">
    <a href="#%e5%88%86%e6%94%af%e7%9a%84%e4%bd%bf%e7%94%a8" class="header-mark"></a>分支的使用</h3><p>通过命令 <code>git branch</code> 来查看分支情况，当前分支会前面带 * 标识。<code>git branch &lt;branch name&gt;</code> 来创建分支。
分支创建会拷贝当前的内容到新的分支。通过 <code>git checkout &lt;branch name&gt;</code> 来切换到我们需要切换的分支。</p>
<p>我们也可以通过 <code>git checkout -b &lt;filename&gt;</code> 来创建分支并且切换到该分支。</p>
<h3 id="分支的合并" class="headerLink">
    <a href="#%e5%88%86%e6%94%af%e7%9a%84%e5%90%88%e5%b9%b6" class="header-mark"></a>分支的合并</h3><p>当我们创建出新的分支的时候，就可以对这个分支进行版本的迭代。当我们做完版本迭代，版本更新的时候，就会向我们的 <code>master</code> 分支上就行合并。</p>
<p>如果我们要向 <code>master</code> 分支上合并我们新创建的分支叫 <code>dev</code> ，那么我们先切换分支到 <code>master</code>，在通过 <code>git merge dev</code> 进行合并两个分支。期间会有合并冲突，通过修改来进行保留。</p>
<h2 id="git-flow" class="headerLink">
    <a href="#git-flow" class="header-mark"></a>Git flow</h2><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/git%20flow.png'     ></p>
<p>如上图，git flow 是 <code>git</code> 给我们的一个协作的开发流程，<code>master</code> 分支一般是用于上线产品的发布，<code>develop</code> 分支使用开发， 在他的支线上我们一般会创建功能分支。我们在功能分支上开发完成后合并到 <code>develop</code> 分支上。这样就完成了我们的 git flow 开发。</p>
<p><a href="https://island-hexo.oss-cn-beijing.aliyuncs.com/Git&amp;Github.pptx" target="_blank" rel="noopener noreferrer">PPT下载</a></p>
]]></description></item><item><title>Git基本操作</title><link>https://youngxhui.top/2016/08/git%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/</link><pubDate>Sat, 13 Aug 2016 17:09:57 +0000</pubDate><author><name>youngxhui</name></author><guid>https://youngxhui.top/2016/08/git%E5%9F%BA%E6%9C%AC%E6%93%8D%E4%BD%9C/</guid><description><![CDATA[<h2 id="下载安装git客户端" class="headerLink">
    <a href="#%e4%b8%8b%e8%bd%bd%e5%ae%89%e8%a3%85git%e5%ae%a2%e6%88%b7%e7%ab%af" class="header-mark"></a>下载安装Git客户端</h2><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/git.png'   alt="Git"  ></p>
<p><a href="https://git-scm.com/download" target="_blank" rel="noopener noreferrer">git</a>下载</p>
<h2 id="安装教程" class="headerLink">
    <a href="#%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b" class="header-mark"></a>安装教程</h2><p>装完成后，还需要最后一步设置，在命令行输入：</p>
<blockquote>
  <p>$ git config &ndash;global user.name &ldquo;Your Name&rdquo;
$ git config &ndash;global user.email &ldquo;<a href="mailto:email@example.com" rel="">email@example.com</a>&rdquo;</p>

</blockquote><p>因为Git是分布式版本控制系统，所以，每个机器都必须自报家门：你的名字和Email地址。</p>
<h2 id="创建本地仓库" class="headerLink">
    <a href="#%e5%88%9b%e5%bb%ba%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93" class="header-mark"></a>创建本地仓库</h2><blockquote>
  <p>$ git init</p>

</blockquote><h2 id="添加-add" class="headerLink">
    <a href="#%e6%b7%bb%e5%8a%a0-add" class="header-mark"></a>添加 add</h2><h3 id="把文件添加到仓库" class="headerLink">
    <a href="#%e6%8a%8a%e6%96%87%e4%bb%b6%e6%b7%bb%e5%8a%a0%e5%88%b0%e4%bb%93%e5%ba%93" class="header-mark"></a>把文件添加到仓库：</h3><blockquote>
  <p>$ git add readme.txt</p>

</blockquote><p>执行上面的命令，没有任何显示，这就对了，Unix的哲学是“没有消息就是好消息”，说明添加成功。</p>
<h3 id="把文件提交到仓库" class="headerLink">
    <a href="#%e6%8a%8a%e6%96%87%e4%bb%b6%e6%8f%90%e4%ba%a4%e5%88%b0%e4%bb%93%e5%ba%93" class="header-mark"></a>把文件提交到仓库：</h3><blockquote>
  <p>$ git commit -m &ldquo;add readme&rdquo;</p>

</blockquote><p><code>git commit</code>命令，<code>-m</code>后面输入的是本次提交的说明，可以输入任意内容，当然最好是有意义的，这样你就能从历史记录里方便地找到改动记录。</p>
<h2 id="同步到github" class="headerLink">
    <a href="#%e5%90%8c%e6%ad%a5%e5%88%b0github" class="header-mark"></a>同步到Github</h2><h3 id="上传到github" class="headerLink">
    <a href="#%e4%b8%8a%e4%bc%a0%e5%88%b0github" class="header-mark"></a>上传到github</h3><p>例如我们给一个叫Test的仓库同步</p>
<blockquote>
  <p>$ git remote add origin <a href="mailto:git@github.com" rel="">git@github.com</a>:youngxhui/Test.git</p>

</blockquote><p>现在可以push到你的仓库了</p>
<blockquote>
  <p>$ git push -u origin master</p>

</blockquote><p>第一次推送时，我们要添加<code>-u</code></p>
<p>之后我们可以这条命令</p>
<blockquote>
  <p>$ git push origin master</p>

</blockquote><h3 id="下载到github" class="headerLink">
    <a href="#%e4%b8%8b%e8%bd%bd%e5%88%b0github" class="header-mark"></a>下载到github</h3><p>从github上下载到本地</p>
<blockquote>
  <pre><code>$ git clone git@github.com:youngxhui/nuc_JavaLab.git
</code></pre>

</blockquote><h2 id="分支的操作" class="headerLink">
    <a href="#%e5%88%86%e6%94%af%e7%9a%84%e6%93%8d%e4%bd%9c" class="header-mark"></a>分支的操作</h2><h3 id="分支的创建" class="headerLink">
    <a href="#%e5%88%86%e6%94%af%e7%9a%84%e5%88%9b%e5%bb%ba" class="header-mark"></a>分支的创建</h3><p>创建分支</p>
<blockquote>
  <p>$ git checkout -b dev</p>

</blockquote><p><code>-b</code> 参数表示创建并切换</p>
<h3 id="查看分支" class="headerLink">
    <a href="#%e6%9f%a5%e7%9c%8b%e5%88%86%e6%94%af" class="header-mark"></a>查看分支</h3><p>用git branch命令查看当前分支：</p>
<blockquote>
  <pre><code>   $ git branch
   * dev
   master
</code></pre>

</blockquote><p>git branch命令会列出所有分支，<strong>当前分支</strong>前面会标一个<code>*</code>号。</p>
<p>我们就可以在dev分支上正常提交</p>
<blockquote>
  <p>$ git add readme.txt</p>

</blockquote><blockquote>
  <p>$ git commit -m &ldquo;branch test&rdquo;</p>

</blockquote><h3 id="切换分支" class="headerLink">
    <a href="#%e5%88%87%e6%8d%a2%e5%88%86%e6%94%af" class="header-mark"></a>切换分支</h3><p>切换回master分支：</p>
<blockquote>
  <p>$ git checkout master</p>

</blockquote><h3 id="合并分支" class="headerLink">
    <a href="#%e5%90%88%e5%b9%b6%e5%88%86%e6%94%af" class="header-mark"></a>合并分支</h3><p>把<code>dev</code>分支合并到<code>master</code></p>
<blockquote>
  <p>$ git merge dev</p>

</blockquote><h3 id="删除分支" class="headerLink">
    <a href="#%e5%88%a0%e9%99%a4%e5%88%86%e6%94%af" class="header-mark"></a>删除分支</h3><blockquote>
  <p>$ git branch -d dev</p>

</blockquote><hr>
]]></description></item><item><title>GitHub for Windows使用教程(四)</title><link>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E5%9B%9B/</link><pubDate>Mon, 16 May 2016 19:01:13 +0000</pubDate><author><name>youngxhui</name></author><guid>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E5%9B%9B/</guid><description><![CDATA[<h2 id="前言" class="headerLink">
    <a href="#%e5%89%8d%e8%a8%80" class="header-mark"></a>前言</h2><p>在上述的几个教程里讲解了一些Github的基础使用，现在开始讲解一些使用技巧。</p>
<h2 id="查找内容" class="headerLink">
    <a href="#%e6%9f%a5%e6%89%be%e5%86%85%e5%ae%b9" class="header-mark"></a>查找内容</h2><p>在github页面上是没有搜索的按钮，如何搜索呢。
在网页上按  <code>T</code> 就会出现。
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E6%9F%A5%E6%89%BET.png'     >
这样我们就能很方便的查找到我们需要的代码了。</p>
<h2 id="评论小表情" class="headerLink">
    <a href="#%e8%af%84%e8%ae%ba%e5%b0%8f%e8%a1%a8%e6%83%85" class="header-mark"></a>评论小表情</h2><p>常常在<strong>版本描述</strong>或者<strong>pull request</strong>时我们需要对伙伴的代码进行一下评论与说明，光是文字有点很死板，其实github给我有<strong>emoji</strong>，如何使用呢？其实很简单，只需要<strong>冒号</strong>就可以 <code>：</code>，这样我们就可以看到emoji表情，当然默认会显示五个常用的，你也可以继续敲下emoji的名字，出现更多（<a href="http://www.webpagefx.com/tools/emoji-cheat-sheet/" target="_blank" rel="noopener noreferrer">这里有所有的表情</a>）。
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%AE%A2%E6%88%B7%E7%AB%AFemoji.png'     >
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/emoji.png'     ></p>
<h2 id="忽略不想上传的文件" class="headerLink">
    <a href="#%e5%bf%bd%e7%95%a5%e4%b8%8d%e6%83%b3%e4%b8%8a%e4%bc%a0%e7%9a%84%e6%96%87%e4%bb%b6" class="header-mark"></a>忽略不想上传的文件</h2><p>有些在github中的文件我们是不想上传的，我们如何过滤掉它们呢？
在github中对不想上传的文件点击右键。就会出现下面选项。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%BF%BD%E7%95%A5.png'     >
<strong>Ignore file</strong>忽略这个文件
<strong>Ignore all.txt files</strong> 忽略所有的以.txt结尾的文件
这样就可以过滤掉你不想上传的文件</p>
<h2 id="搜索项目" class="headerLink">
    <a href="#%e6%90%9c%e7%b4%a2%e9%a1%b9%e7%9b%ae" class="header-mark"></a>搜索项目</h2><p>如何高效的搜索一个你想要的库呢？
我们常常评判一个项目的标准有star数目，fork数目和跟新时间。
通过搜索命令</p>
<p><strong>stars</strong></p>
<pre><code>stars:&gt;1000
</code></pre>
<p>表示star数目大于1000。</p>
<p><strong>fork</strong></p>
<pre><code>fork:&gt;1000
</code></pre>
<p>表示fork数目大于1000。</p>
<p><strong>语言搜索</strong></p>
<p>java，html等等</p>
<p>综合一下就是，比如你要查找一个stars大于1000的，fork大于200的java代码。</p>
<pre><code>stars:&gt;1000 fork:&gt;200 java
</code></pre>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E6%90%9C%E7%B4%A2.png'     ></p>
<p>就是这样。</p>
<h2 id="查看项目中的语言类型" class="headerLink">
    <a href="#%e6%9f%a5%e7%9c%8b%e9%a1%b9%e7%9b%ae%e4%b8%ad%e7%9a%84%e8%af%ad%e8%a8%80%e7%b1%bb%e5%9e%8b" class="header-mark"></a>查看项目中的语言类型</h2><p>一个项目中，可能使用了多种语言，我们如何一下子就能看到一个项目使用了什么语言？其实很简单，Github已经为我们统计好了。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E7%9C%8B.png'     ></p>
<p>也行你注意过，但是没有发现它有什么用。
点击下面的彩条</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/BaiduShurufa_2016-9-4_22-25-50.png'     ></p>
<p>github已经为我们统计好这个项目所有的语言及其比例。</p>
<p>一些常见的代码表示颜色</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/BaiduShurufa_2016-9-24_17-7-2.png'     ></p>
<h2 id="总结" class="headerLink">
    <a href="#%e6%80%bb%e7%bb%93" class="header-mark"></a>总结</h2><p>码字不易，终于写完了，如果觉得对你有帮助，我的目的就达到了。
谢谢
如有错误，还望指正。</p>
]]></description></item><item><title>GitHub for windows使用教程（三）</title><link>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E4%B8%89/</link><pubDate>Sun, 15 May 2016 00:41:41 +0000</pubDate><author><name>youngxhui</name></author><guid>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E4%B8%89/</guid><description><![CDATA[<h2 id="认识flow" class="headerLink">
    <a href="#%e8%ae%a4%e8%af%86flow" class="header-mark"></a>认识Flow</h2><p>**<a href="https://guides.github.com/introduction/flow/" target="_blank" rel="noopener noreferrer">GitHub Flow</a>**是一个轻量级的，基于分支的工作流程，支持团队和部署在那里的定期做项目。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/1.png'     ></p>
<h2 id="为团队成员写入权限" class="headerLink">
    <a href="#%e4%b8%ba%e5%9b%a2%e9%98%9f%e6%88%90%e5%91%98%e5%86%99%e5%85%a5%e6%9d%83%e9%99%90" class="header-mark"></a>为团队成员写入权限</h2><p>在我们的队友添加一个写的权限，这样我们的队友才能很好的修改代码。
我们打开网页上的<a href="http://www.github.com" target="_blank" rel="noopener noreferrer">GitHub</a>,点击<strong>settings</strong>,</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/2.png'     ></p>
<p>之后我们找到<strong>collaborators</strong>，这里会让我们验证密码，之后就有添加合作者的选项。这样我们就能添加我们的小伙伴了！</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/3.png'     ></p>
<p>这样我们就添加了新的小伙伴，新的小伙伴有着同样的权限去修改和管理代码。
此时我们就会看到我的小伙伴wevan的github主页上就会出现关于我创建的First的各种通知。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/9.png'     ></p>
<h2 id="创建分支" class="headerLink">
    <a href="#%e5%88%9b%e5%bb%ba%e5%88%86%e6%94%af" class="header-mark"></a>创建分支</h2><p>在我们创建一个叫<strong>add new function</strong>的分支。</p>
<p>创建一个分支</p>
<blockquote>
  <p><em>Create a branch</em></p>

</blockquote><p>当您在进行项目时，在任何给定的时间都会有许多不同的功能或想法在进行中-其中一些已准备就绪，而另一些则没有。存在分支可帮助您管理此工作流程。</p>
<blockquote>
  <p><em>When you&rsquo;re working on a project, you&rsquo;re going to have a bunch of different features or ideas in progress at any given time – some of which are ready to go, and others which are not. Branching exists to help you manage this workflow.</em></p>

</blockquote><p>在项目中创建分支时，正在创建一个环境，您可以在其中尝试新的想法。您在分支机构上所做的更改不会影响主分支，因此您可以自由地进行试验和提交更改，并且可以知道，在准备好与您的协作者进行审核之前，您的分支机构不会被合并，这是安全的。</p>
<blockquote>
  <p><em>When you create a branch in your project, you&rsquo;re creating an environment where you can try out new ideas. Changes you make on a branch don&rsquo;t affect the master branch, so you&rsquo;re free to experiment and commit changes, safe in the knowledge that your branch won&rsquo;t be merged until it&rsquo;s ready to be reviewed by someone you&rsquo;re collaborating with.</em></p>

</blockquote><p><strong>ProTip</strong></p>
<p>分支在Git中是一个核心概念，整个GitHub的流量是基于它。这里只有一个规则：在任何主分支总是部署。</p>
<blockquote>
  <p><em>Branching is a core concept in Git, and the entire GitHub Flow is based upon it. There&rsquo;s only one rule: anything in the master branch is always deployable.</em></p>

</blockquote><p>正因为如此，这是非常重要的一个功能或修复工作时，你的新分支关老爷的创建。您的分支名应该是描述（例如，重构的身份验证，用户的内容缓存键，使视网膜-化身），以便其他人可以看到正在处理。</p>
<blockquote>
  <p><em>Because of this, it&rsquo;s extremely important that your new branch is created off of master when working on a feature or a fix. Your branch name should be descriptive (e.g., refactor-authentication, user-content-cache-key, make-retina-avatars), so that others can see what is being worked on.</em>
<strong><a href="https://guides.github.com/introduction/flow/" target="_blank" rel="noopener noreferrer">来自GitHub Flow</a></strong></p>

</blockquote><h2 id="添加提交" class="headerLink">
    <a href="#%e6%b7%bb%e5%8a%a0%e6%8f%90%e4%ba%a4" class="header-mark"></a>添加提交</h2><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/4.png'     ></p>
<p>我们首先把分支切换到新的分支上<strong>add new function</strong></p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/5.png'     ></p>
<p>修改新的版本</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/6.png'     ></p>
<p>填写好新的<strong>Summary</strong>和<strong>Description</strong>，提交新的版本并同步。
这样小伙伴登陆到<strong>GitHub</strong>上就看到了就可以清楚的看到一切的修改。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/7.png'     ></p>
<p>添加提交</p>
<blockquote>
  <p><em>Add commits</em></p>

</blockquote><p>一旦你的分支已经建立，现在是时候开始进行更改。无论何时添加，编辑或删除一个文件，你作出承诺，并将其添加到您的分支。提交加入这一过程保持你的进步轨迹，你在一个特性分支工作。</p>
<blockquote>
  <p><em>Once your branch has been created, it&rsquo;s time to start making changes. Whenever you add, edit, or delete a file, you&rsquo;re making a commit, and adding them to your branch. This process of adding commits keeps track of your progress as you work on a feature branch.</em></p>

</blockquote><p>还承诺创建工作的透明历史，其他人可以按照理解你做了什么，以及为什么。每次提交都有一个关联的提交信息，这是解释为什么一个特定的变化作出了说明。此外，每次提交被认为是变革的一个独立单元。这使您可以回滚的变化，如果发现错误，或者如果你决定在一个不同的方向前进。</p>
<blockquote>
  <p><em>Commits also create a transparent history of your work that others can follow to understand what you&rsquo;ve done and why. Each commit has an associated commit message, which is a description explaining why a particular change was made. Furthermore, each commit is considered a separate unit of change. This lets you roll back changes if a bug is found, or if you decide to head in a different direction.</em></p>

</blockquote><p><strong>ProTip</strong></p>
<p>提交信息是重要的，特别是因为Git跟踪更改，然后将它们显示为承诺一旦他们推到服务器。通过字迹清晰提交信息，你可以更容易为其他人跟着，并提供反馈。</p>
<blockquote>
  <p><em>Commit messages are important, especially since Git tracks your changes and then displays them as commits once they&rsquo;re pushed to the server. By writing clear commit messages, you can make it easier for other people to follow along and provide feedback.</em>
<strong><a href="https://guides.github.com/introduction/flow/" target="_blank" rel="noopener noreferrer">来自GitHub Flow</a></strong></p>

</blockquote><h2 id="打开一个pull请求" class="headerLink">
    <a href="#%e6%89%93%e5%bc%80%e4%b8%80%e4%b8%aapull%e8%af%b7%e6%b1%82" class="header-mark"></a>打开一个pull请求</h2><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/8.png'     >
这个是整个流程中比较关键的一步，发布<strong>Pull Request</strong>。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/10.png'     ></p>
<p>点击客户端或者网页上的<strong>Pull Request</strong>发布。
我们这里点击<strong>Pull Request</strong></p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/11.png'   alt="客户端/网页版"  >
我们填写好必要的说明性文字
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/12.png'     >
点击<strong>Send Pull Request</strong>
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/13.png'     >
他既然让我们到GitHub上看，我们就听他的，点击，进入。
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/14.png'     >
我们发现小伙伴已经在下面留言了！</p>
<h3 id="讨论和审核你的代码" class="headerLink">
    <a href="#%e8%ae%a8%e8%ae%ba%e5%92%8c%e5%ae%a1%e6%a0%b8%e4%bd%a0%e7%9a%84%e4%bb%a3%e7%a0%81" class="header-mark"></a>讨论和审核你的代码</h3><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/15.png'     ></p>
<p>你的小伙伴开始对你的代码讨论，修改，迭代。</p>
<p>讨论和审查你的代码</p>
<blockquote>
  <p><em>Discuss and review your code</em></p>

</blockquote><p>一旦拉入请求已被打开，人或团队审查您的变化可能有疑问或意见。也许编码风格不匹配项目的指导方针，改变缺少单元测试，或者也许一切看起来不错，道具都是为了。引入请求旨在鼓励并捕获这种类型的对话。</p>
<blockquote>
  <p><em>Once a Pull Request has been opened, the person or team reviewing your changes may have questions or comments. Perhaps the coding style doesn&rsquo;t match project guidelines, the change is missing unit tests, or maybe everything looks great and props are in order. Pull Requests are designed to encourage and capture this type of conversation.</em></p>

</blockquote><p>您还可以继续推送到你的分支在你提交的讨论和反馈光。如果有人评论说，你忘了做某件事，或者如果在代码中的错误，你可以在你的分支修复它，推高的变化。GitHub上会显示新的提交和其他任何意见，你可能会收到统一拉请求视图。</p>
<blockquote>
  <p><em>You can also continue to push to your branch in light of discussion and feedback about your commits. If someone comments that you forgot to do something or if there is a bug in the code, you can fix it in your branch and push up the change. GitHub will show your new commits and any additional feedback you may receive in the unified Pull Request view.</em></p>

</blockquote><p><strong>ProTip</strong></p>
<p>拉请求的意见都写在降价，所以你可以插入图片和表情符，使用预先格式化的文本块，等轻质格式。</p>
<blockquote>
  <p><em>Pull Request comments are written in Markdown, so you can embed images and emoji, use pre-formatted text blocks, and other lightweight formatting.</em></p>

</blockquote><h2 id="部署" class="headerLink">
    <a href="#%e9%83%a8%e7%bd%b2" class="header-mark"></a>部署</h2><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/16.png'     ></p>
<p>部署</p>
<blockquote>
  <p><em>Deploy</em></p>

</blockquote><p>一旦你拉的请求进行了审查和部门通过你的测试，您可以部署您的更改，以验证他们的生产。如果你的分支造成的问题，您可以通过部署现有的主投产回滚</p>
<blockquote>
  <p><em>Once your pull request has been reviewed and the branch passes your tests, you can deploy your changes to verify them in production. If your branch causes issues, you can roll it back by deploying the existing master into production.</em></p>

</blockquote><h2 id="合并" class="headerLink">
    <a href="#%e5%90%88%e5%b9%b6" class="header-mark"></a>合并</h2><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/17.png'     ></p>
<p>合并分支我们之前已经说过，这里就不再赘述。</p>
<p>合并</p>
<blockquote>
  <p><em>Merge</em></p>

</blockquote><p>现在，您的更改在生产中得到了验证，现在是时候你的代码合并到主分支。</p>
<blockquote>
  <p><em>Now that your changes have been verified in production, it is time to merge your code into the master branch.</em></p>

</blockquote><p>合并后，引入请求保护的历史变迁到您的代码记录。因为他们是搜索的，他们不让任何人回去的时间理解为什么以及如何决定了。</p>
<blockquote>
  <p><em>Once merged, Pull Requests preserve a record of the historical changes to your code. Because they&rsquo;re searchable, they let anyone go back in time to understand why and how a decision was made.</em></p>

</blockquote><p><strong>ProTip</strong></p>
<p>通过将某些关键字到您的拉请求的文本，你可以用代码相关联的问题。当你拉入请求合并，相关问题也将被关闭。例如，输入短语关闭＃32将关闭在仓库中发行数量32。欲了解更多信息，请查看我们的帮助文章。</p>
<blockquote>
  <p><em>By incorporating certain keywords into the text of your Pull Request, you can associate issues with code. When your Pull Request is merged, the related issues are also closed. For example, entering the phrase Closes #32 would close issue number 32 in the repository. For more information, check out our help article.</em></p>

</blockquote><p><strong>注意：英文翻译为机器翻译，可能有翻译错误的地方，建议大家尽可能看英文</strong></p>
<h1 id="总结" class="headerLink">
    <a href="#%e6%80%bb%e7%bb%93" class="header-mark"></a>总结</h1><p>基本的GitHub教程就算写完了，已有如果在有就是一些GitHub上的一些使用小技巧了。</p>
]]></description></item><item><title>GitHub for Windows使用教程(二)</title><link>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E4%BA%8C/</link><pubDate>Fri, 13 May 2016 07:48:34 +0000</pubDate><author><name>youngxhui</name></author><guid>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E4%BA%8C/</guid><description><![CDATA[<h2 id="创建分支" class="headerLink">
    <a href="#%e5%88%9b%e5%bb%ba%e5%88%86%e6%94%af" class="header-mark"></a>创建分支</h2><p>我们创建第一个分支取名为**“new masterh”<strong>,点击</strong>Create new branch**创建第一个分支。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E6%96%B0%E5%BB%BA%E5%88%86%E6%94%AF.png'   alt="新建分支.png"  ></p>
<p>我们发现此时的分支已经切换到了我们刚刚创建的分支<strong>new masterch</strong></p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%88%87%E6%8D%A2%E5%88%86%E6%94%AF.png'     ></p>
<p>我们来修改<strong>new masterch</strong>分支上的内容。
我们仍旧打开<strong>FirstDemo.txt</strong>进行编辑。输入以下内容</p>
<blockquote>
  <p>创建的第一个分支。</p>

</blockquote><p>打开github进行，填写<strong>Summary</strong>和<strong>Description</strong></p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E4%BF%AE%E6%94%B9%E5%88%86%E6%94%AF%E5%86%85%E5%AE%B9.png'     ></p>
<p>之后我们点击<strong>Commit to new-master</strong>
在<strong>History</strong>目录下，我们可以看到会有两条主线，分别是<strong>master</strong>和<strong>new-master</strong>并且在<strong>new-master</strong>的分支下又一个蓝色的<strong>实线空心圈</strong>和一个<strong>虚线空心圈</strong>。
<strong>实线圈</strong>表示当前的节点，<strong>空心圈</strong>表示下一次修改时的节点。
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E6%8E%A8%E9%80%81%E5%88%86%E6%94%AF.png'     >
<strong>红线</strong>标示的部分就是当前的分支
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E7%BA%A2%E7%BA%BF%E5%BC%BA%E8%B0%83.png'     ></p>
<h2 id="切换分支" class="headerLink">
    <a href="#%e5%88%87%e6%8d%a2%e5%88%86%e6%94%af" class="header-mark"></a>切换分支</h2><p>点击<strong>红色</strong>划线部分就会出现分支的列表
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/5d9c09b750eec11d.png'     >
我们点击<strong>master</strong>就会切换到<strong>master</strong>分支。</p>
<h2 id="上传同步分支" class="headerLink">
    <a href="#%e4%b8%8a%e4%bc%a0%e5%90%8c%e6%ad%a5%e5%88%86%e6%94%af" class="header-mark"></a>上传/同步分支</h2><p>这个操作和同步仓库是一个操作，点击<strong>Publish/Sync</strong>上传或同步分支。</p>
<h2 id="删除分支" class="headerLink">
    <a href="#%e5%88%a0%e9%99%a4%e5%88%86%e6%94%af" class="header-mark"></a>删除分支</h2><p>首先要把分支切换到你要删除的分支下，如我们要删除<strong>new master</strong>，将分支切换到<strong>new master</strong>点击右上角齿轮就会出现<strong>Delete new master</strong></p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%88%A0%E9%99%A4%E5%88%86%E6%94%AF.png'     ></p>
<p>点击<strong>Delete new master</strong>就会弹出一个对话框，询问删除的内容。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E7%A1%AE%E8%AE%A4%E5%88%A0%E9%99%A4.png'     ></p>
<p>第一个<strong>yes ，Delete both</strong>是将本地与网页全部删除；
第二个<strong>Delete local only</strong>仅仅是删除本地。
第三个是取消。</p>
<h2 id="合并两个分支" class="headerLink">
    <a href="#%e5%90%88%e5%b9%b6%e4%b8%a4%e4%b8%aa%e5%88%86%e6%94%af" class="header-mark"></a>合并两个分支</h2><p>将一个分支与<strong>master</strong>分支进行合并。
我们首先把分支切换到<strong>master</strong>下，点击<strong>Update from new-branch</strong>进行分支的合并。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%90%88%E5%B9%B6%E5%88%86%E6%94%AF%E6%93%8D%E4%BD%9C.png'     ></p>
<p>此时我们查看<strong>history</strong>目录下就会</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%90%88%E5%B9%B6%E5%88%86%E6%94%AF.png'     ></p>
]]></description></item><item><title>GitHub for Windows使用教程（一）</title><link>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E4%B8%80/</link><pubDate>Tue, 03 May 2016 19:09:42 +0000</pubDate><author><name>youngxhui</name></author><guid>https://youngxhui.top/2016/05/github-for-windows%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B%E4%B8%80/</guid><description><![CDATA[<h2 id="前言" class="headerLink">
    <a href="#%e5%89%8d%e8%a8%80" class="header-mark"></a>前言</h2><p>鉴于网上目前的教材都太落后，github for windows已经更新了多个版本，好多界面都发生了变化，所以来写这个教程。目的是为了帮助和我一样初学github，但是苦于找不到教程的同学，为了写最详细的教程。配备了大量的图文介绍。该教程是基于<strong>GitHub for windows (3.0.17.0)</strong></p>
<h2 id="什么是github" class="headerLink">
    <a href="#%e4%bb%80%e4%b9%88%e6%98%afgithub" class="header-mark"></a>什么是Github</h2><p>说到什么事github，我们先看wikipedia的描述“<a href="https://zh.wikipedia.org/wiki/GitHub" target="_blank" rel="noopener noreferrer">GitHub是一个利用Git进行版本控制、专门用于存放软件代码与内容的共享虚拟主机服务。它由GitHub公司（曾称Logical Awesome）的开发者Chris Wanstrath、PJ Hyett和Tom Preston-Werner使用Ruby on Rails编写而成。</a>”</p>
<h2 id="准备工作" class="headerLink">
    <a href="#%e5%87%86%e5%a4%87%e5%b7%a5%e4%bd%9c" class="header-mark"></a>准备工作</h2><ol>
<li>
<p>下载<a href="https://desktop.github.com/" target="_blank" rel="noopener noreferrer">github for windows</a>，安装这里不赘述。</p>
</li>
<li>
<p><a href="https://github.com/" target="_blank" rel="noopener noreferrer">注册github账号</a></p>
</li>
</ol>
<p><img class="tw-inline" loading="lazy" src='http://i3.piimg.com/2513fb0c843f35c9.png'     ></p>
<ol start="3">
<li>登陆到github for windows。</li>
</ol>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E7%99%BB%E9%99%86.png'     ></p>
<hr>
<p>准备工作都完了，我们开始正式学习。^_^</p>
<h2 id="创建第一个代码库" class="headerLink">
    <a href="#%e5%88%9b%e5%bb%ba%e7%ac%ac%e4%b8%80%e4%b8%aa%e4%bb%a3%e7%a0%81%e5%ba%93" class="header-mark"></a>创建第一个代码库</h2><h3 id="认识界面" class="headerLink">
    <a href="#%e8%ae%a4%e8%af%86%e7%95%8c%e9%9d%a2" class="header-mark"></a>认识界面</h3><p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E4%BB%93%E5%BA%93%E7%95%8C%E9%9D%A2.png'     ></p>
<p>github for windows的界面非常清爽，的确符合geek的性质，个人表示非常喜欢。
我们来建立第一个仓库，点击左上角的**+号**，初次建立他会有一圈圈的涟漪，非常漂亮哦。
打开之后有三个选项，Add，Create，Clone。
<img class="tw-inline" loading="lazy" src='http://i3.piimg.com/cf0b5eb355dfb4cf.png'     >
我们分别来介绍一下这三个功能。</p>
<h3 id="add功能" class="headerLink">
    <a href="#add%e5%8a%9f%e8%83%bd" class="header-mark"></a>Add功能</h3><p>如果本地有工程，就可以使用Add添加</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/Add%E5%8A%9F%E8%83%BD.png'     ></p>
<h3 id="clone功能" class="headerLink">
    <a href="#clone%e5%8a%9f%e8%83%bd" class="header-mark"></a>Clone功能</h3><p>这个功能其实最好理解了，克隆这名字通俗易懂好理解。
如何使用Clone功能呢？</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/clone%E5%8A%9F%E8%83%BD.png'     ></p>
<p>就是将在浏览器上已经创建好的项目导入到本地，换句话说就是下载到本地。</p>
<h3 id="create功能" class="headerLink">
    <a href="#create%e5%8a%9f%e8%83%bd" class="header-mark"></a>Create功能</h3><p>创建一个代码库，
Name填写你的仓库名字。Local path写你将要保存在本地路径。我们主要从这个功能开始github之旅。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/create%E5%8A%9F%E8%83%BD.png'     ></p>
<p>我们在这里填写First，来创建第一个我们自己的repository。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%88%9B%E5%BB%BAfrist.png'     ></p>
<h2 id="开始使用第一个代码库" class="headerLink">
    <a href="#%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8%e7%ac%ac%e4%b8%80%e4%b8%aa%e4%bb%a3%e7%a0%81%e5%ba%93" class="header-mark"></a>开始使用第一个代码库</h2><h3 id="修改第一个代码库中内容" class="headerLink">
    <a href="#%e4%bf%ae%e6%94%b9%e7%ac%ac%e4%b8%80%e4%b8%aa%e4%bb%a3%e7%a0%81%e5%ba%93%e4%b8%ad%e5%86%85%e5%ae%b9" class="header-mark"></a>修改第一个代码库中内容</h3><p>我们来找到刚刚创建的代码库在本地的位置。就是刚刚在local path的地址路径，当然如果你忘了，请右键点击First。
<img class="tw-inline" loading="lazy" src='http://i3.piimg.com/0e76cd4dde922713.png'     >
选择Open in Explorer。这样我们就可以转到刚刚的路径下。
我们新建一个文本文档。在里面编辑。
如下
<img class="tw-inline" loading="lazy" src='http://i3.piimg.com/ce9841870311a76d.png'     >
此时的github就会变成这个样子(Changs)：
<img class="tw-inline" loading="lazy" src='http://i3.piimg.com/2f8f72a1976e5986.png'     >
你会发现此时github会出现刚刚编辑的内容。</p>
<ol>
<li>这个是测试文本</li>
<li>你好</li>
</ol>
<p>并且前面会有<strong>蓝色标识</strong>，那么这个<strong>蓝色标识</strong>是什么用呢？
其实这个蓝色标识是提示你会上改变的文本。比如我第一次只想改变
<strong>这个是测试文本</strong>并不想把<strong>你好</strong>上传。
这时我们点击一下<strong>你好</strong>的前面的<strong>蓝色标识</strong>。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC.png'     ></p>
<p>你会发现<strong>你好</strong>前面的蓝色标识没有了。
我们填写好<strong>Summer</strong>和<strong>Description</strong>
Summer就是这次改动的总结，我们也可以理解为标题*（必填）<em>，而Description可以理解为详细概况</em>（选填）*</p>
<hr>
<p>我们这里只选择第一个修改对象，也就是<strong>这个是测试文本</strong>就行修改。summer我们填写为_第一次修改_，Description我们填写为_增加了这个是测试文本_的内容，之后点击<strong>Commit to master</strong>。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E8%BF%99%E6%98%AF%E8%BF%99%E6%98%AF%E6%96%87%E6%9C%AC.png'     ></p>
<p>切换到<strong>History</strong>目录下</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/History%E7%9B%AE%E5%BD%95.png'     ></p>
<p>我们会发现他改变了。
这次我们把<strong>你好</strong>进行添加。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E7%AC%AC%E4%BA%8C%E6%AC%A1.png'     ></p>
<p>在<strong>History</strong>目录下发生了这样的改变。会在<strong>History</strong>目录下形成一天时间线，来指出每一次的修改标题和内容，同时会把修改的内容用<strong>绿色标识</strong>标出。
我们打开本地的文本，删除刚刚添加的第一行<strong>这个是测试文本</strong>。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E8%BF%99%E4%B8%AA%E6%98%AF%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC.png'     ></p>
<p>此时你就会发现github发生了变化。
很多人说这里会出现乱码,这个是编码问题,如果不修改编码,只是在客户端上显示乱码,但是上传后不会出现乱码,为了保险起见,建议大家还是把文本编码修改为 utf-8 .
<img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E5%88%A0%E9%99%A4%E7%BA%A2%E8%89%B2%E6%A0%87%E8%AF%86.png'     ></p>
<p>此时的<strong>红色标识</strong>标识删除。我们写好Summer和Description并点击Commit to master。
这样我们就删除了第一行。同时在<strong>History</strong>目录下又多了一条时间轴。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E7%BA%A2%E8%89%B2%E6%A0%87%E8%AF%86.png'     ></p>
<p>这样我们就完成了删除。</p>
<h3 id="上传与同步" class="headerLink">
    <a href="#%e4%b8%8a%e4%bc%a0%e4%b8%8e%e5%90%8c%e6%ad%a5" class="header-mark"></a>上传与同步</h3><h4 id="上传" class="headerLink">
    <a href="#%e4%b8%8a%e4%bc%a0" class="header-mark"></a>上传</h4><p>此时，当我们打开github网页，就会发现此时你的修改的内容并没有出现在这里。这是因为你没有进行同步，仅仅是在本地就行了修改。此时我们仅仅需要点击右上角的<strong>publish</strong></p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E4%B8%8A%E4%BC%A0.png'     ></p>
<p>此时你就会本地内容已经上传到网页上。</p>
<p><img class="tw-inline" loading="lazy" src='https://island-hexo.oss-cn-beijing.aliyuncs.com/%E7%BD%91%E9%A1%B5.png'     ></p>
<h4 id="同步" class="headerLink">
    <a href="#%e5%90%8c%e6%ad%a5" class="header-mark"></a>同步</h4><p>当你的代码库上传后就会发现，原来的<strong>publish</strong>以及变为了<strong>Sync</strong>。</p>
<p><img class="tw-inline" loading="lazy" src='http://7xrn7f.com1.z0.glb.clouddn.com/16-5-3/66610926.jpg'     ></p>
<p>点击<strong>Sync</strong>同步代码库！</p>
]]></description></item></channel></rss>