<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>git &#8211; wqh博客</title>
	<atom:link href="https://wangqianhong.com/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://wangqianhong.com</link>
	<description>和而不同</description>
	<lastBuildDate>Mon, 25 Aug 2025 06:57:18 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://wangqianhong.com/wp-content/uploads/2020/09/cropped-1-1-1-32x32.png</url>
	<title>git &#8211; wqh博客</title>
	<link>https://wangqianhong.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>git 设置邮箱和保存密码</title>
		<link>https://wangqianhong.com/2021/06/git-%e8%ae%be%e7%bd%ae%e9%82%ae%e7%ae%b1%e5%92%8c%e4%bf%9d%e5%ad%98%e5%af%86%e7%a0%81/</link>
					<comments>https://wangqianhong.com/2021/06/git-%e8%ae%be%e7%bd%ae%e9%82%ae%e7%ae%b1%e5%92%8c%e4%bf%9d%e5%ad%98%e5%af%86%e7%a0%81/#respond</comments>
		
		<dc:creator><![CDATA[wqh_work]]></dc:creator>
		<pubDate>Thu, 10 Jun 2021 09:23:37 +0000</pubDate>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://wangqianhong.com/?p=1523</guid>

					<description><![CDATA[<p>在第一次用git commit的时候，需要我们配置账号和邮箱： git config --globa&#8230; <a href="https://wangqianhong.com/2021/06/git-%e8%ae%be%e7%bd%ae%e9%82%ae%e7%ae%b1%e5%92%8c%e4%bf%9d%e5%ad%98%e5%af%86%e7%a0%81/" class="more-link read-more" rel="bookmark">继续阅读 <span class="screen-reader-text">git 设置邮箱和保存密码</span><i class="fa fa-arrow-right"></i></a></p>
<p><a rel="nofollow" href="https://wangqianhong.com/2021/06/git-%e8%ae%be%e7%bd%ae%e9%82%ae%e7%ae%b1%e5%92%8c%e4%bf%9d%e5%ad%98%e5%af%86%e7%a0%81/">git 设置邮箱和保存密码</a>最先出现在<a rel="nofollow" href="https://wangqianhong.com">wqh博客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>在第一次用git commit的时候，需要我们配置账号和邮箱：</p>



<pre class="wp-block-preformatted"><code>git config --global user.name 你的名字</code>
<code>git config --global user.email 你的邮箱地址</code></pre>



<p></p>



<p>在用git push代码的时候，经常需要重复输入密码，下面的命令可以让我们免除这种烦恼，只需要输入一次，以后就不用再输入密码了：</p>



<pre class="wp-block-code"><code>git config --global credential.helper store</code></pre>



<p></p>
<p><a rel="nofollow" href="https://wangqianhong.com/2021/06/git-%e8%ae%be%e7%bd%ae%e9%82%ae%e7%ae%b1%e5%92%8c%e4%bf%9d%e5%ad%98%e5%af%86%e7%a0%81/">git 设置邮箱和保存密码</a>最先出现在<a rel="nofollow" href="https://wangqianhong.com">wqh博客</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wangqianhong.com/2021/06/git-%e8%ae%be%e7%bd%ae%e9%82%ae%e7%ae%b1%e5%92%8c%e4%bf%9d%e5%ad%98%e5%af%86%e7%a0%81/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>git clone 指定目录</title>
		<link>https://wangqianhong.com/2021/05/git-clone-%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e5%a4%b9/</link>
					<comments>https://wangqianhong.com/2021/05/git-clone-%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e5%a4%b9/#respond</comments>
		
		<dc:creator><![CDATA[wqh_work]]></dc:creator>
		<pubDate>Fri, 28 May 2021 12:50:01 +0000</pubDate>
				<category><![CDATA[技术文章]]></category>
		<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://wangqianhong.com/?p=1495</guid>

					<description><![CDATA[<p>首先clone整个项目： git clone https://github.com/Capricor&#8230; <a href="https://wangqianhong.com/2021/05/git-clone-%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e5%a4%b9/" class="more-link read-more" rel="bookmark">继续阅读 <span class="screen-reader-text">git clone 指定目录</span><i class="fa fa-arrow-right"></i></a></p>
<p><a rel="nofollow" href="https://wangqianhong.com/2021/05/git-clone-%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e5%a4%b9/">git clone 指定目录</a>最先出现在<a rel="nofollow" href="https://wangqianhong.com">wqh博客</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>首先clone整个项目：</p>



<p><code>git clone <a href="https://github.com/Capricornwqh/ChineseChess">https://github.com/Capricornwqh/ChineseChess</a></code></p>



<p>进入目录，设置单个文件夹即可：</p>



<p><code>git sparse-checkout init --cone</code></p>



<p><code>git sparse-checkout set chess</code></p>



<p>git 设置Proxy</p>



<pre class="wp-block-code"><code>git config --global http.proxy 'socks5://127.0.0.1:1080'</code></pre>
<p><a rel="nofollow" href="https://wangqianhong.com/2021/05/git-clone-%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e5%a4%b9/">git clone 指定目录</a>最先出现在<a rel="nofollow" href="https://wangqianhong.com">wqh博客</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wangqianhong.com/2021/05/git-clone-%e6%8c%87%e5%ae%9a%e6%96%87%e4%bb%b6%e5%a4%b9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
