<?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>程式筆記 &#8211; 比比浪一下</title>
	<atom:link href="https://chobebe.com/tag/%e7%a8%8b%e5%bc%8f%e7%ad%86%e8%a8%98/feed/" rel="self" type="application/rss+xml" />
	<link>https://chobebe.com</link>
	<description>旅行、美食、寫作日常</description>
	<lastBuildDate>Thu, 12 Feb 2026 10:17:05 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://chobebe.com/wp-content/uploads/2021/03/chobebe-200x200.png</url>
	<title>程式筆記 &#8211; 比比浪一下</title>
	<link>https://chobebe.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">175145175</site>	<item>
		<title>【Git筆記】更換遠端伺服器網址</title>
		<link>https://chobebe.com/git-remote-set-url/</link>
		
		<dc:creator><![CDATA[Bebe]]></dc:creator>
		<pubDate>Tue, 12 Oct 2021 10:49:14 +0000</pubDate>
				<category><![CDATA[技能筆記]]></category>
		<category><![CDATA[GIT]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[程式筆記]]></category>
		<guid isPermaLink="false">https://chobebe.com/?p=3471</guid>

					<description><![CDATA[<p><a rel="nofollow" href="https://chobebe.com">比比浪一下</a><br />
<a rel="nofollow" href="https://chobebe.com/git-remote-set-url/">【Git筆記】更換遠端伺服器網址</a></p>
<p>PhpStorm各專案需要執行步驟1~3VMware Server需要執行步驟1~4 1. 查看目前Git遠端 [&#8230;]</p>
<p><a rel="nofollow" href="https://chobebe.com/git-remote-set-url/">【Git筆記】更換遠端伺服器網址</a><br />
<a rel="nofollow" href="https://chobebe.com/author/chochoc153/">Bebe</a></p>
]]></description>
										<content:encoded><![CDATA[<p><a rel="nofollow" href="https://chobebe.com">比比浪一下</a><br />
<a rel="nofollow" href="https://chobebe.com/git-remote-set-url/">【Git筆記】更換遠端伺服器網址</a></p>

<figure class="wp-block-image size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXq02HOHE1FV7k_LD9MGBs8M1KN1HSEDH0Mtl5MSMkJ_I7U40oOKQLDbHAh0FGiiDEN_UOZPoA_sA0_Ev58Dp2oa9Li0jdyF4qfIwKMqJwqAwBWadxeqHxs_Ru4PLxYZMCAld80T3vVL_BGcdsebmMwxg=w800" alt="【Git筆記】更換遠端伺服器網址"/></figure>



<p>PhpStorm各專案需要執行步驟1~3<br>VMware Server需要執行步驟1~4</p>



<p></p>



<p>1.  查看目前Git遠端伺服器網址：git remote -v</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">$ git remote -v
origin  https://gitlab.com/Username/Repository.git (fetch)
origin  https://gitlab.com/Username/Repository.git (push)</code></pre>



<p>2. 更換Git遠端伺服器位網址：git remote set-url&nbsp;origin&nbsp;&lt;URL&gt;</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">$&nbsp;git remote set-url origin http://gitlabv2.com/Username/Repository.git</code></pre>



<p>3. 確認更換後的Git遠端伺服器位網址：git remote -v </p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">$ git remote -v
origin  https://gitlabv2.com/Username/Repository.git (fetch)
origin  https://gitlabv2.com/Username/Repository.git (push)</code></pre>



<p>4. 更新本機server的host</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash">$ nslookup gitlabv2.com

Non-authoritative answer:
Name:   gitlabv2.com
Address: 10.36.22.193</code></pre>



<pre class="wp-block-code"><code lang="bash" class="language-bash">$ sudo vi /etc/hosts

加上這一行
10.36.22.193    gitlabv2.com</code></pre>



<p></p>



<p>如果使用GitKraken就更簡單了！</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLV7355qGvoYsJ1GkqUWtgdEMToGiUSY7nO2rgqZ55XMxU0ji9k3ykh_vG4Sc4XIGfYs0piMjhikq_3MMK_3QP7bV-GxOlacVGyjVUjngxXleXyAtXj2oe-W7frzHHcrx5-1BkCt9gbXl8WXupymPXNaag=w800" alt="【Git筆記】更換遠端伺服器網址"/></figure>
<p><a rel="nofollow" href="https://chobebe.com/git-remote-set-url/">【Git筆記】更換遠端伺服器網址</a><br />
<a rel="nofollow" href="https://chobebe.com/author/chochoc153/">Bebe</a></p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3471</post-id>	</item>
	</channel>
</rss>
