<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Git on Margrop Blog</title>
    <link>https://blog.margrop.net/en/tag/git/</link>
    <description>Recent content in Git on Margrop Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 28 Aug 2021 14:40:50 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/en/tag/git/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Enable Version Control for Node-RED Flows</title>
      <link>https://blog.margrop.net/en/post/node-red-enable-version-control/</link>
      <pubDate>Sat, 28 Aug 2021 14:40:50 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/node-red-enable-version-control/</guid>
      <description>&lt;h1 id=&#34;problem-description&#34;&gt;Problem Description&lt;/h1&gt;&#xA;&lt;p&gt;I used to back up Node-RED flows by copying &lt;code&gt;~/.node-red/flows_xxx.json&lt;/code&gt; and keeping multiple versions. That was annoying, and even comparing unformatted JSON with tools like Beyond Compare was a mess.&lt;/p&gt;&#xA;&lt;h1 id=&#34;solution-pretty-print-json&#34;&gt;Solution: Pretty-Print JSON&lt;/h1&gt;&#xA;&lt;p&gt;I found that by changing the setting in &lt;code&gt;~/.node-red/settings.js&lt;/code&gt;, the &lt;code&gt;flows_xxx.json&lt;/code&gt; file can be saved in a pretty-printed format.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Common Git Commands</title>
      <link>https://blog.margrop.net/en/post/git-normal-commands/</link>
      <pubDate>Sun, 17 Jan 2021 12:59:53 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/git-normal-commands/</guid>
      <description>&lt;ol&gt;&#xA;&lt;li&gt;&lt;code&gt;git reflog&lt;/code&gt; Display recent Git operation records&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;git reflog head@{0}&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Proxy Only for GitHub git clone</title>
      <link>https://blog.margrop.net/en/post/github-git-clone-speed-up/</link>
      <pubDate>Sun, 17 Jan 2021 12:53:12 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/github-git-clone-speed-up/</guid>
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git config --global http.https://github.com.proxy socks5://127.0.0.1:1080&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git config --global https.https://github.com.proxy socks5://127.0.0.1:1080&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
  </channel>
</rss>
