Site updated: 2022-10-11 10:58:41

This commit is contained in:
qinglong
2022-10-11 10:58:42 +08:00
parent 9b4ffd3ce6
commit ff3820960c
53 changed files with 131 additions and 55 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
<author>
<name>Hito li</name>
</author>
<updated>2022-10-06T15:46:00.000Z</updated>
<updated>2022-10-11T02:40:00.000Z</updated>
<category term="hito" />
<category term="無言" />
<category term="博客" />
@ -16,6 +16,34 @@
<category term="笔记" />
<category term="心得体会" />
<category term="踩坑" />
<entry>
<id>https://blog.jingxiyuan.cn/2022/10/11/svn%E5%BA%93%E8%BD%ACgit%E5%BA%93/</id>
<title>svn库转git库</title>
<link rel="alternate" href="https://blog.jingxiyuan.cn/2022/10/11/svn%E5%BA%93%E8%BD%ACgit%E5%BA%93/"/>
<content type="html">&lt;h4 id=&#34;前期准备&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#前期准备&#34;&gt;#&lt;/a&gt; 前期准备&lt;/h4&gt;
&lt;p&gt;  首先安装好 svn 和 git 工具。&lt;/p&gt;
&lt;h4 id=&#34;svn转git&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#svn转git&#34;&gt;#&lt;/a&gt; svn 转 git&lt;/h4&gt;
&lt;p&gt;1、 到 svn 项目目录右键选中 gitbash 打开窗口,执行获取用户并映射成 git 样式账号命令如下:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;svn log -q | awk -F &#39;|&#39; &#39;/^r/ &amp;#123;sub(&amp;quot;^ &amp;quot;, &amp;quot;&amp;quot;, $2); sub(&amp;quot; $&amp;quot;, &amp;quot;&amp;quot;, $2); print $2&amp;quot; = &amp;quot;$2&amp;quot; &amp;lt;&amp;quot;$2&amp;quot;&amp;gt;&amp;quot;&amp;#125;&#39; | sort -u &amp;gt; users.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;  然后会在目录下生成文件 users.txt 样式如zhansan = 张三 &lt;span class=&#34;exturl&#34; data-url=&#34;bWFpbHRvOnpoYW5zYW5AeHh4LmNvbQ==&#34;&gt;zhansan@xxx.com&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2、新建个文件夹将生成的 users.txt 放入新建的文件夹,然后在新建的文件夹中右键选中 gitbash 弹出窗口后执行下面命令,拉取 svn 代码到本地新建文件夹中。&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;git svn clone https://svn_project_url/ --no-metadata --no-minimize-url --authors-file=users.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;  期间可能会弹出 svn 的账户密码验证窗口,正确输入即可。&lt;/p&gt;
&lt;h4 id=&#34;推送项目到git库&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#推送项目到git库&#34;&gt;#&lt;/a&gt; 推送项目到 git 库&lt;/h4&gt;
&lt;p&gt;1、在 gitbash 窗口 cd 到 git 项目文件夹中执行以下命令把 git 仓库地址加入到 remote 中&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;git remote add origin https://git_project_url/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;2、push 项目到 git 库中&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;git push origin master
&lt;/code&gt;&lt;/pre&gt;
</content>
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
<category term="svn" scheme="https://blog.jingxiyuan.cn/tags/svn/" />
<category term="git" scheme="https://blog.jingxiyuan.cn/tags/git/" />
<updated>2022-10-11T02:40:00.000Z</updated>
</entry>
<entry>
<id>https://blog.jingxiyuan.cn/2022/10/06/Nginx%E9%85%8D%E7%BD%AEiframe%E8%AE%BF%E9%97%AE/</id>
<title>Nginx配置iframe访问</title>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,18 @@
"description": "hito的博客",
"home_page_url": "https://blog.jingxiyuan.cn",
"items": [
{
"id": "https://blog.jingxiyuan.cn/2022/10/11/svn%E5%BA%93%E8%BD%ACgit%E5%BA%93/",
"url": "https://blog.jingxiyuan.cn/2022/10/11/svn%E5%BA%93%E8%BD%ACgit%E5%BA%93/",
"title": "svn库转git库",
"date_published": "2022-10-11T02:40:00.000Z",
"content_html": "<h4 id=\"前期准备\"><a class=\"anchor\" href=\"#前期准备\">#</a> 前期准备</h4>\n<p>  首先安装好 svn 和 git 工具。</p>\n<h4 id=\"svn转git\"><a class=\"anchor\" href=\"#svn转git\">#</a> svn 转 git</h4>\n<p>1、 到 svn 项目目录右键选中 gitbash 打开窗口,执行获取用户并映射成 git 样式账号命令如下:</p>\n<pre><code class=\"language-bash\">svn log -q | awk -F '|' '/^r/ &#123;sub(&quot;^ &quot;, &quot;&quot;, $2); sub(&quot; $&quot;, &quot;&quot;, $2); print $2&quot; = &quot;$2&quot; &lt;&quot;$2&quot;&gt;&quot;&#125;' | sort -u &gt; users.txt\n</code></pre>\n<p>  然后会在目录下生成文件 users.txt 样式如zhansan = 张三 <span class=\"exturl\" data-url=\"bWFpbHRvOnpoYW5zYW5AeHh4LmNvbQ==\">zhansan@xxx.com</span>。</p>\n<p>2、新建个文件夹将生成的 users.txt 放入新建的文件夹,然后在新建的文件夹中右键选中 gitbash 弹出窗口后执行下面命令,拉取 svn 代码到本地新建文件夹中。</p>\n<pre><code class=\"language-bash\">git svn clone https://svn_project_url/ --no-metadata --no-minimize-url --authors-file=users.txt\n</code></pre>\n<p>  期间可能会弹出 svn 的账户密码验证窗口,正确输入即可。</p>\n<h4 id=\"推送项目到git库\"><a class=\"anchor\" href=\"#推送项目到git库\">#</a> 推送项目到 git 库</h4>\n<p>1、在 gitbash 窗口 cd 到 git 项目文件夹中执行以下命令把 git 仓库地址加入到 remote 中</p>\n<pre><code class=\"language-bash\">git remote add origin https://git_project_url/\n</code></pre>\n<p>2、push 项目到 git 库中</p>\n<pre><code class=\"language-bash\">git push origin master\n</code></pre>\n",
"tags": [
"技术分享",
"svn",
"git"
]
},
{
"id": "https://blog.jingxiyuan.cn/2022/10/06/Nginx%E9%85%8D%E7%BD%AEiframe%E8%AE%BF%E9%97%AE/",
"url": "https://blog.jingxiyuan.cn/2022/10/06/Nginx%E9%85%8D%E7%BD%AEiframe%E8%AE%BF%E9%97%AE/",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

32
rss.xml
View File

@ -10,8 +10,8 @@
</author>
<description>hito的博客</description>
<language>zh-CN</language>
<pubDate>Thu, 06 Oct 2022 23:46:00 +0800</pubDate>
<lastBuildDate>Thu, 06 Oct 2022 23:46:00 +0800</lastBuildDate>
<pubDate>Tue, 11 Oct 2022 10:40:00 +0800</pubDate>
<lastBuildDate>Tue, 11 Oct 2022 10:40:00 +0800</lastBuildDate>
<category term="hito" />
<category term="無言" />
<category term="博客" />
@ -19,6 +19,34 @@
<category term="笔记" />
<category term="心得体会" />
<category term="踩坑" />
<item>
<guid isPermalink="true">https://blog.jingxiyuan.cn/2022/10/11/svn%E5%BA%93%E8%BD%ACgit%E5%BA%93/</guid>
<title>svn库转git库</title>
<link>https://blog.jingxiyuan.cn/2022/10/11/svn%E5%BA%93%E8%BD%ACgit%E5%BA%93/</link>
<category term="技术分享" scheme="https://blog.jingxiyuan.cn/categories/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/" />
<category term="svn" scheme="https://blog.jingxiyuan.cn/tags/svn/" />
<category term="git" scheme="https://blog.jingxiyuan.cn/tags/git/" />
<pubDate>Tue, 11 Oct 2022 10:40:00 +0800</pubDate>
<description><![CDATA[ &lt;h4 id=&#34;前期准备&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#前期准备&#34;&gt;#&lt;/a&gt; 前期准备&lt;/h4&gt;
&lt;p&gt;  首先安装好 svn 和 git 工具。&lt;/p&gt;
&lt;h4 id=&#34;svn转git&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#svn转git&#34;&gt;#&lt;/a&gt; svn 转 git&lt;/h4&gt;
&lt;p&gt;1、 到 svn 项目目录右键选中 gitbash 打开窗口,执行获取用户并映射成 git 样式账号命令如下:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;svn log -q | awk -F &#39;|&#39; &#39;/^r/ &amp;#123;sub(&amp;quot;^ &amp;quot;, &amp;quot;&amp;quot;, $2); sub(&amp;quot; $&amp;quot;, &amp;quot;&amp;quot;, $2); print $2&amp;quot; = &amp;quot;$2&amp;quot; &amp;lt;&amp;quot;$2&amp;quot;&amp;gt;&amp;quot;&amp;#125;&#39; | sort -u &amp;gt; users.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;  然后会在目录下生成文件 users.txt 样式如zhansan = 张三 &lt;span class=&#34;exturl&#34; data-url=&#34;bWFpbHRvOnpoYW5zYW5AeHh4LmNvbQ==&#34;&gt;zhansan@xxx.com&lt;/span&gt;。&lt;/p&gt;
&lt;p&gt;2、新建个文件夹将生成的 users.txt 放入新建的文件夹,然后在新建的文件夹中右键选中 gitbash 弹出窗口后执行下面命令,拉取 svn 代码到本地新建文件夹中。&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;git svn clone https://svn_project_url/ --no-metadata --no-minimize-url --authors-file=users.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;  期间可能会弹出 svn 的账户密码验证窗口,正确输入即可。&lt;/p&gt;
&lt;h4 id=&#34;推送项目到git库&#34;&gt;&lt;a class=&#34;anchor&#34; href=&#34;#推送项目到git库&#34;&gt;#&lt;/a&gt; 推送项目到 git 库&lt;/h4&gt;
&lt;p&gt;1、在 gitbash 窗口 cd 到 git 项目文件夹中执行以下命令把 git 仓库地址加入到 remote 中&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;git remote add origin https://git_project_url/
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;2、push 项目到 git 库中&lt;/p&gt;
&lt;pre&gt;&lt;code class=&#34;language-bash&#34;&gt;git push origin master
&lt;/code&gt;&lt;/pre&gt;
]]></description>
</item>
<item>
<guid isPermalink="true">https://blog.jingxiyuan.cn/2022/10/06/Nginx%E9%85%8D%E7%BD%AEiframe%E8%AE%BF%E9%97%AE/</guid>
<title>Nginx配置iframe访问</title>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
tags/git/index.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
tags/svn/index.html Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long