Site updated: 2022-10-11 10:58:41
This commit is contained in:
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
5
2022/10/11/svn库转git库/index.html
Normal file
5
2022/10/11/svn库转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
1
archives/2022/page/2/index.html
Normal file
1
archives/2022/page/2/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
30
atom.xml
30
atom.xml
@ -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"><h4 id="前期准备"><a class="anchor" href="#前期准备">#</a> 前期准备</h4>
|
||||
<p> 首先安装好 svn 和 git 工具。</p>
|
||||
<h4 id="svn转git"><a class="anchor" href="#svn转git">#</a> svn 转 git</h4>
|
||||
<p>1、 到 svn 项目目录右键选中 gitbash 打开窗口,执行获取用户并映射成 git 样式账号命令如下:</p>
|
||||
<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
|
||||
</code></pre>
|
||||
<p> 然后会在目录下生成文件 users.txt 样式如:zhansan = 张三 <span class="exturl" data-url="bWFpbHRvOnpoYW5zYW5AeHh4LmNvbQ==">zhansan@xxx.com</span>。</p>
|
||||
<p>2、新建个文件夹,将生成的 users.txt 放入新建的文件夹,然后在新建的文件夹中右键选中 gitbash 弹出窗口后执行下面命令,拉取 svn 代码到本地新建文件夹中。</p>
|
||||
<pre><code class="language-bash">git svn clone https://svn_project_url/ --no-metadata --no-minimize-url --authors-file=users.txt
|
||||
</code></pre>
|
||||
<p> 期间可能会弹出 svn 的账户密码验证窗口,正确输入即可。</p>
|
||||
<h4 id="推送项目到git库"><a class="anchor" href="#推送项目到git库">#</a> 推送项目到 git 库</h4>
|
||||
<p>1、在 gitbash 窗口 cd 到 git 项目文件夹中执行以下命令把 git 仓库地址加入到 remote 中</p>
|
||||
<pre><code class="language-bash">git remote add origin https://git_project_url/
|
||||
</code></pre>
|
||||
<p>2、push 项目到 git 库中</p>
|
||||
<pre><code class="language-bash">git push origin master
|
||||
</code></pre>
|
||||
</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
12
feed.json
12
feed.json
@ -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/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > 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
32
rss.xml
@ -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[ <h4 id="前期准备"><a class="anchor" href="#前期准备">#</a> 前期准备</h4>
|
||||
<p> 首先安装好 svn 和 git 工具。</p>
|
||||
<h4 id="svn转git"><a class="anchor" href="#svn转git">#</a> svn 转 git</h4>
|
||||
<p>1、 到 svn 项目目录右键选中 gitbash 打开窗口,执行获取用户并映射成 git 样式账号命令如下:</p>
|
||||
<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
|
||||
</code></pre>
|
||||
<p> 然后会在目录下生成文件 users.txt 样式如:zhansan = 张三 <span class="exturl" data-url="bWFpbHRvOnpoYW5zYW5AeHh4LmNvbQ==">zhansan@xxx.com</span>。</p>
|
||||
<p>2、新建个文件夹,将生成的 users.txt 放入新建的文件夹,然后在新建的文件夹中右键选中 gitbash 弹出窗口后执行下面命令,拉取 svn 代码到本地新建文件夹中。</p>
|
||||
<pre><code class="language-bash">git svn clone https://svn_project_url/ --no-metadata --no-minimize-url --authors-file=users.txt
|
||||
</code></pre>
|
||||
<p> 期间可能会弹出 svn 的账户密码验证窗口,正确输入即可。</p>
|
||||
<h4 id="推送项目到git库"><a class="anchor" href="#推送项目到git库">#</a> 推送项目到 git 库</h4>
|
||||
<p>1、在 gitbash 窗口 cd 到 git 项目文件夹中执行以下命令把 git 仓库地址加入到 remote 中</p>
|
||||
<pre><code class="language-bash">git remote add origin https://git_project_url/
|
||||
</code></pre>
|
||||
<p>2、push 项目到 git 库中</p>
|
||||
<pre><code class="language-bash">git push origin master
|
||||
</code></pre>
|
||||
]]></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
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
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
Reference in New Issue
Block a user