<?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; CPYNET</title>
	<atom:link href="https://cpynet.com.tr/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://cpynet.com.tr</link>
	<description>Yeni Nesil Teknoloji Platformu</description>
	<lastBuildDate>Wed, 20 Nov 2024 07:05:49 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://cpynet.com.tr/wp-content/uploads/2024/11/cropped-favicon-32x32.png</url>
	<title>Git &#8211; CPYNET</title>
	<link>https://cpynet.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Git pull ile local dosyalar nasıl üzerine yazdırılır?</title>
		<link>https://cpynet.com.tr/git-pull-ile-local-dosyalar-nasil-uzerine-yazdirilir/</link>
		
		<dc:creator><![CDATA[Emin Buyuk]]></dc:creator>
		<pubDate>Tue, 22 Oct 2024 08:15:34 +0000</pubDate>
				<category><![CDATA[Sorun Giderme]]></category>
		<category><![CDATA[Git]]></category>
		<guid isPermaLink="false">https://cpynet-wordpress.wekeea.easypanel.host/git-pull-ile-local-dosyalar-nasil-uzerine-yazdirilir/</guid>

					<description><![CDATA[⚠ Uyarı:Commit edilmemiş tüm local değişiklikler, tracked dosyalar da dahil olmak üzere kaybolur. Hatta bu değişiklikler staged bile&#8230;]]></description>
										<content:encoded><![CDATA[
<p><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/26a0.png" alt="⚠" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Uyarı:<br>Commit edilmemiş tüm local değişiklikler, tracked dosyalar da dahil olmak üzere kaybolur. Hatta bu değişiklikler staged bile olsa. Ancak, Git tarafından takip edilmeyen dosyalar etkilenmez ve olduğu gibi kalır.</p>



<p>İlk olarak, tüm origin/ referanslarını güncellemek için aşağıdaki komutu kullanın:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git fetch --all
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">fetch</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">--all</span></span>
<span class="line"></span></code></pre></div>



<p>Şu anki branch’inizi yedekleyin (örneğin main):</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git branch backup-main
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">branch</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">backup-main</span></span>
<span class="line"></span></code></pre></div>



<p>Ardından, origin/main üzerindeki son commit&#8217;e geçin ve bu dosyaları checkout yapın:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git reset --hard origin/main
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">reset</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">--hard</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">origin/main</span></span>
<span class="line"></span></code></pre></div>



<h3 class="wp-block-heading" id="a%C3%A7%C4%B1klama">Açıklama:</h3>



<p><code>git fetch</code>, remote’daki son güncellemeleri indirir, ancak hiçbir merge ya da rebase işlemi yapmaz.</p>



<p><code>git reset --hard</code>, local branch’inizi fetch ettiğiniz duruma sıfırlar. Bu komut, tüm local dosyalarınızı origin/main’deki dosyalarla aynı hale getirir.</p>



<h3 class="wp-block-heading" id="mevcut-local-commit%E2%80%99leri-koruma">Mevcut local commit’leri koruma:</h3>



<p>Eğer local commit&#8217;lerinizi kaybetmek istemiyorsanız, reset işleminden önce bir branch oluşturabilirsiniz. Bu sayede mevcut commit&#8217;ler korunur:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git checkout master
git branch new-branch-to-save-current-commits
git fetch --all
git reset --hard origin/main
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">checkout</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">master</span></span>
<span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">branch</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">new-branch-to-save-current-commits</span></span>
<span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">fetch</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">--all</span></span>
<span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">reset</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">--hard</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">origin/main</span></span>
<span class="line"></span></code></pre></div>



<p>Bu işlemin ardından eski commit&#8217;ler, yeni oluşturduğunuz branch’de korunur.</p>



<h3 class="wp-block-heading" id="commit-edilmemi%C5%9F-de%C4%9Fi%C5%9Fiklikler">Commit edilmemiş değişiklikler:</h3>



<p>Commit edilmemiş tüm değişiklikler, staged olsa dahi kaybolur. İhtiyacınız olan dosyaları kaybetmemek için, bu değişiklikleri stash’e alabilir ya da commit edebilirsiniz. Aşağıdaki komutla stash’e alabilirsiniz:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git stash
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">stash</span></span>
<span class="line"></span></code></pre></div>



<p><code>git reset</code> işleminden sonra, bu uncommitted changes’larınızı geri yüklemek için şu komutu kullanın:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git stash pop
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">stash</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">pop</span></span>
<span class="line"></span></code></pre></div>



<p>Bu rehberle, local dosyalarınız üzerine yazdırarak git pull işlemi gerçekleştirebilir ve mevcut commit&#8217;lerinizi koruma altına alabilirsiniz.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Git Branch&#8217;lerini Yerel ve Uzaktan Nasıl Silebilirim?</title>
		<link>https://cpynet.com.tr/git-branchlerini-yerel-ve-uzaktan-nasil-silebilirim/</link>
		
		<dc:creator><![CDATA[Emin Buyuk]]></dc:creator>
		<pubDate>Tue, 22 Oct 2024 08:14:29 +0000</pubDate>
				<category><![CDATA[Sorun Giderme]]></category>
		<category><![CDATA[Git]]></category>
		<guid isPermaLink="false">https://cpynet-wordpress.wekeea.easypanel.host/git-branchlerini-yerel-ve-uzaktan-nasil-silebilirim/</guid>

					<description><![CDATA[Özet: Yerel Branch&#8217;ı Silme Yerel branch&#8217;ı silmek için aşağıdaki komutlardan birini kullanabilirsiniz: Uzak Branch&#8217;ı Silme Git v1.7.0 itibarıyla,&#8230;]]></description>
										<content:encoded><![CDATA[
<p><strong>Özet:</strong></p>



<ul class="wp-block-list">
<li><strong>Uzaktan silmek için:</strong> <code>git push -d &lt;remote_name&gt; &lt;branchname&gt;</code></li>



<li><strong>Yerel silmek için:</strong> <code>git branch -d &lt;branchname&gt;</code></li>



<li><strong>Not:</strong> Çoğu durumda <code>&lt;remote_name&gt;</code> değeri <code>origin</code> olacaktır.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p><strong>Yerel Branch&#8217;ı Silme</strong> Yerel branch&#8217;ı silmek için aşağıdaki komutlardan birini kullanabilirsiniz:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git branch -d 
git branch -D 
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">branch</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">-d</span><span style="color: #F8F8F2"> </span></span>
<span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">branch</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">-D</span><span style="color: #F8F8F2"> </span></span>
<span class="line"></span></code></pre></div>



<ul class="wp-block-list">
<li><code>-d</code> seçeneği, branch&#8217;ın yalnızca yukarıdaki branch ile tamamen birleştirilmişse silinmesini sağlayan <code>--delete</code> seçeneğinin takma adıdır.</li>



<li><code>-D</code> seçeneği, branch&#8217;ın &#8220;birleşim durumuna bakılmaksızın&#8221; silinmesini sağlayan <code>--delete --force</code> seçeneğinin takma adıdır. (Kaynak: <code>man git-branch</code>)</li>



<li>Git v2.3 itibarıyla, <code>git branch -d</code> (silme) komutu <code>-f</code> (zorla) bayrağını dikkate almayı öğrendi.</li>



<li>Geçerli seçili branch&#8217;ı silmeye çalışırsanız bir hata alırsınız.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p><strong>Uzak Branch&#8217;ı Silme</strong> Git v1.7.0 itibarıyla, uzaktaki bir branch&#8217;ı silmek için şu komutu kullanabilirsiniz:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git push  --delete 
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">push</span><span style="color: #F8F8F2">  </span><span style="color: #BD93F9">--delete</span><span style="color: #F8F8F2"> </span></span>
<span class="line"></span></code></pre></div>



<p>Bu, hatırlaması daha kolay bir komut olabilir, önceki yöntem olan:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git push  :
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">push</span><span style="color: #F8F8F2">  </span><span style="color: #F1FA8C">:</span></span>
<span class="line"></span></code></pre></div>



<p>Git v1.5.0&#8217;da &#8220;uzaktaki bir branch&#8217;ı veya etiketi silmek için&#8221; eklenmiştir.</p>



<p>Git v2.8.0&#8217;dan itibaren, <code>-d</code> seçeneğini <code>--delete</code> için bir takma ad olarak kullanarak <code>git push</code> ile de uzaktan branch silebilirsiniz. Bu nedenle, yüklü olan Git sürümünüz, daha kolay veya daha zor söz dizimini kullanmanız gerektiğini belirleyecektir.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p><strong>Uzak Branch Silme [5 Ocak 2010&#8217;dan Orijinal Cevap]</strong> Scott Chacon&#8217;un <em>Pro Git</em> kitabının 3. bölümünden:</p>



<p><strong>Uzak Branch&#8217;ları Silmek</strong> Bir uzaktaki branch ile işiniz bittiğinde — diyelim ki, siz ve iş arkadaşlarınız bir özellik üzerinde çalıştınız ve bunu uzaktaki ana branch&#8217;ınıza (veya kararlı kod satırınızdaki herhangi bir branch) birleştirdiniz. Şu komutu kullanarak uzaktaki bir branch&#8217;ı silebilirsiniz:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="git push origin :serverfix
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">push</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">origin</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">:serverfix</span></span>
<span class="line"></span></code></pre></div>



<p>Bu komut, sunucunuzdaki <code>serverfix</code> branch&#8217;ını siler.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="To git@github.com:schacon/simplegit.git
 - [deleted]         serverfix
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #50FA7B">To</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">git@github.com:schacon/simplegit.git</span></span>
<span class="line"><span style="color: #F8F8F2"> </span><span style="color: #50FA7B">-</span><span style="color: #F8F8F2"> [deleted]         serverfix</span></span>
<span class="line"></span></code></pre></div>



<p>Boom. Artık sunucunuzda branch kalmadı. Bu sayfayı favorilerinize eklemek isteyebilirsiniz çünkü bu komutu kullanmanız gerekecek ve söz dizimini unutmanız muhtemel. Bu komutu hatırlamanın bir yolu, biraz önce geçtiklerimiz gibi <code>git push [remotename] [localbranch]:[remotebranch]</code> söz dizimini hatırlamaktır. <code>[localbranch]</code> kısmını atladığınızda, &#8220;Tarafımda hiçbir şey almayın ve bunu [remotebranch] yapın.&#8221; demektesiniz.</p>



<p><code>git push origin :bugfix</code> komutunu çalıştırdım ve mükemmel bir şekilde çalıştı.</p>



<p>Son olarak, değişiklikleri yaymak için diğer makinelerde aşağıdaki komutu çalıştırın:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="# Tüm uzaklardan değişiklikleri al ve yerelde
# silinen branch'ları/etiketleri vb. sil
# --prune işini görecektir
git fetch --all --prune
" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #6272A4"># Tüm uzaklardan değişiklikleri al ve yerelde</span></span>
<span class="line"><span style="color: #6272A4"># silinen branch&#39;ları/etiketleri vb. sil</span></span>
<span class="line"><span style="color: #6272A4"># --prune işini görecektir</span></span>
<span class="line"><span style="color: #50FA7B">git</span><span style="color: #F8F8F2"> </span><span style="color: #F1FA8C">fetch</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">--all</span><span style="color: #F8F8F2"> </span><span style="color: #BD93F9">--prune</span></span>
<span class="line"></span></code></pre></div>



<p>Umarım bu bilgiler işinize yarar!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
