<?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; Selman Tunc</title>
	<atom:link href="https://selmantunc.com.tr/category/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://selmantunc.com.tr</link>
	<description></description>
	<lastBuildDate>Wed, 27 May 2026 21:50:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://selmantunc.com.tr/wp-content/uploads/2023/07/cropped-tumblr_inline_oglumuMbgO1tyldvk_540-150x150-1-32x32.jpg</url>
	<title>git &#8211; Selman Tunc</title>
	<link>https://selmantunc.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>git &#8211; Local’deki tüm tag’leri silmek için:</title>
		<link>https://selmantunc.com.tr/git/git-localdeki-tum-tagleri-silmek-icin/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 27 May 2026 21:50:52 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3551</guid>

					<description><![CDATA[Local’deki tüm tag’leri silmek için: git tag -d $(git tag) Bu komut, yerel repodaki bütün tag’leri tek seferde siler. git-scm İstersen önce hangi tag’ler olduğunu görmek için: git tag Bir&#8230;]]></description>
										<content:encoded><![CDATA[<p>Local’deki tüm tag’leri silmek için:</p>
<pre><code class="lang-bash language-bash bash">git tag -d $(git tag)</code></pre>
<p>Bu komut, yerel repodaki bütün tag’leri tek seferde siler. <a href="https://git-scm.com/docs/git-commit">git-scm</a>
İstersen önce hangi tag’ler olduğunu görmek için:</p>
<pre><code class="lang-bash language-bash bash">git tag</code></pre>
<p>Bir remote’daki tag’leri silmek farklı bir işlemdir; bu komut sadece <strong>local</strong> tag’leri kaldırır. <a href="https://git-scm.com/docs/git-commit">git-scm</a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>git commit geri al</title>
		<link>https://selmantunc.com.tr/git/git-commit-geri-al/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 27 May 2026 21:50:38 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3549</guid>

					<description><![CDATA[Son commit’i geri almak için birkaç seçenek var: Commit’i geri al, değişiklikleri stage’de tut: git reset --soft HEAD~1 Commit’i geri al, değişiklikleri working tree’de tut: git reset --mixed HEAD~1 Commit’i&#8230;]]></description>
										<content:encoded><![CDATA[<p>Son commit’i geri almak için birkaç seçenek var:</p>
<ul>
<li>
<p>Commit’i geri al, değişiklikleri stage’de tut:</p>
<pre><code class="lang-bash language-bash bash">git reset --soft HEAD~1</code></pre>
</li>
<li>
<p>Commit’i geri al, değişiklikleri working tree’de tut:</p>
<pre><code class="lang-bash language-bash bash">git reset --mixed HEAD~1</code></pre>
</li>
<li>
<p>Commit’i tamamen sil, değişiklikleri de at:</p>
<pre><code class="lang-bash language-bash bash">git reset --hard HEAD~1</code></pre>
</li>
</ul>
<p>Eğer commit’i remote’a push ettiysen, <code>reset --hard</code> yerine çoğu zaman şu daha güvenlidir:</p>
<pre><code class="lang-bash language-bash bash">git revert HEAD</code></pre>
<p><code>git commit --amend</code> ise son commit’i silmez; son commit’i düzeltmek için kullanılır. <a href="https://www.atlassian.com/git/tutorials/saving-changes/git-commit">atlassian</a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>git tag push</title>
		<link>https://selmantunc.com.tr/git/git-tag-push/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 27 May 2026 21:50:03 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3547</guid>

					<description><![CDATA[Tüm yerel tag’leri remote’a göndermek için: git push --tags Belirli bir remote’a göndermek istersen: git push origin --tags Sadece tek bir tag göndermek için: git push origin &#60;tag-adi&#62; --tags tüm&#8230;]]></description>
										<content:encoded><![CDATA[<p>Tüm yerel tag’leri remote’a göndermek için:</p>
<pre><code class="lang-bash language-bash bash">git push --tags</code></pre>
<p>Belirli bir remote’a göndermek istersen:</p>
<pre><code class="lang-bash language-bash bash">git push origin --tags</code></pre>
<p>Sadece tek bir tag göndermek için:</p>
<pre><code class="lang-bash language-bash bash">git push origin &lt;tag-adi&gt;</code></pre>
<p><code>--tags</code> tüm local tag’leri yollar; <code>--follow-tags</code> ise yalnızca commit’lerle ilişkili annotated tag’leri gönderir. <a href="https://git-scm.com/book/en/v2/Git-Basics-Tagging">git-scm</a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>changing the default branch on GitHub:</title>
		<link>https://selmantunc.com.tr/git/changing-the-default-branch-on-github/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 27 Feb 2026 10:54:15 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3520</guid>

					<description><![CDATA[To change the default branch in a GitHub repository, you need admin permissions and at least two branches in the repo. docs.github Using the web interface (github.com) Open the repository&#8230;]]></description>
										<content:encoded><![CDATA[<p>To change the default branch in a GitHub repository, you need admin permissions and at least two branches in the repo.<br />
<a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></p>
<h3>Using the web interface (github.com)</h3>
<ol>
<li>Open the repository (for example: <code>github.com/username/repo-name</code>).  </li>
<li>Go to the <strong>Settings</strong> tab under the repository name (if you don’t see it, select it from the right-hand menu).  </li>
<li>In the left sidebar, find the <strong>Default branch</strong> section.  </li>
<li>Click the button next to the current default branch name, and from the dropdown list, select the branch you want to set as the new default.  </li>
<li>Click <strong>Update</strong>.  </li>
<li>Read the warning message and confirm by clicking <strong>I understand, update the default branch</strong>.  </li>
</ol>
<p>From now on, new pull requests and commits will use this selected branch as the default base branch.<br />
<a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></p>
<h3>Using GitHub CLI (optional)</h3>
<p>If you use the <code>gh</code> CLI in your terminal and are inside the repository’s directory, you can run:</p>
<pre><code>gh repo edit --default-branch main</code></pre>
<p>to set the default branch to <code>main</code> (the branch must already exist).<br />
<a href="https://stackoverflow.com/questions/74960450/change-default-branch-via-cli">stackoverflow</a></p>
<p>If you’d like, tell me which method you’re using (web only or CLI as well), and I can walk you through it step by step.</p>
<hr />
<p>Would you like me to make this version more formal (for documentation) or conversational (for a guide or tutorial)?</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>To change the default branch in a GitHub repository</title>
		<link>https://selmantunc.com.tr/git/to-change-the-default-branch-in-a-github-repository/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 27 Feb 2026 08:31:05 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3506</guid>

					<description><![CDATA[To change the default branch in a GitHub repository, you need admin access and at least two branches in the repo. docs.github Via Web Interface Open your repository on GitHub.com&#8230;]]></description>
										<content:encoded><![CDATA[<p>To change the default branch in a GitHub repository, you need admin access and at least two branches in the repo. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></p>
<h2>Via Web Interface</h2>
<ol>
<li>Open your repository on GitHub.com (e.g., <code>github.com/username/repo-name</code>). <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Click the <strong>Settings</strong> tab under the repo name (use the dropdown if not visible). <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>In the left sidebar, find <strong>Branches</strong> &gt; <strong>Default branch</strong>. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Click the pencil icon or dropdown next to the current default branch name. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Select your new default branch (e.g., <code>main</code>) from the list. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Click <strong>Update</strong> and confirm by selecting <strong>I understand, update the default branch</strong>. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
</ol>
<p>This updates where new PRs and clones point by default. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></p>
<h2>Via GitHub CLI (Optional)</h2>
<p>In your repo&#8217;s local directory:  </p>
<pre><code class="lang-bash language-bash bash">gh repo edit --default-branch main</code></pre>
<p>(Replace <code>main</code> with your target branch; it must exist first). <a href="https://stackoverflow.com/questions/74960450/change-default-branch-via-cli">stackoverflow</a></p>
<p>Let me know your setup (web-only, CLI, etc.) for more tailored steps.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>GitHub’daki bir repoda varsayılan (default) branch’i değiştirmek</title>
		<link>https://selmantunc.com.tr/git/githubdaki-bir-repoda-varsayilan-default-branchi-degistirmek/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 27 Feb 2026 08:30:40 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3504</guid>

					<description><![CDATA[GitHub’daki bir repoda varsayılan (default) branch’i değiştirmek için admin yetkisine sahip olman ve repoda en az iki branch bulunması gerekiyor. docs.github Web arayüzüyle (github.com) İlgili repoyu aç (ör: github.com/kullanici/repo-adi). docs.github&#8230;]]></description>
										<content:encoded><![CDATA[<p>GitHub’daki bir repoda varsayılan (default) branch’i değiştirmek için admin yetkisine sahip olman ve repoda en az iki branch bulunması gerekiyor. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></p>
<h2>Web arayüzüyle (github.com)</h2>
<ol>
<li>İlgili repoyu aç (ör: <code>github.com/kullanici/repo-adi</code>). <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Üstte repo adının altındaki <strong>Settings</strong> sekmesine gir (görmüyorsan sağdaki menüden seçmen gerekebilir). <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Sol menüde “Default branch” bölümünü bul. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Mevcut default branch adının yanındaki butona tıkla ve açılan listeden yeni default yapmak istediğin branch’i seç. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li><strong>Update</strong> butonuna tıkla. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
<li>Uyarı metnini oku ve <strong>I understand, update the default branch</strong> diyerek onayla. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></li>
</ol>
<p>Bundan sonra PR’lar ve yeni commit’ler için varsayılan taban branch bu seçtiğin branch olacak. <a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch">docs.github</a></p>
<h2>GitHub CLI ile (isteğe bağlı)</h2>
<p>Terminalde <code>gh</code> CLI kullanıyorsan, mevcut repo klasörünün içindeyken:  </p>
<pre><code class="lang-bash language-bash bash">gh repo edit --default-branch main</code></pre>
<p>komutuyla default branch’i <code>main</code> yapabilirsin (branch’in önceden mevcut olması gerekiyor). <a href="https://stackoverflow.com/questions/74960450/change-default-branch-via-cli">stackoverflow</a></p>
<p>İstersen hangi ortamı kullandığını (sadece web mi, CLI de var mı) yaz, adım adım o senaryoya göre ilerleyelim.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>my github awesome resource</title>
		<link>https://selmantunc.com.tr/software/github-awesome-resource/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 03 Jul 2025 05:23:35 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tools]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3400</guid>

					<description><![CDATA[https://github.com/szabgab/awesome-for-non-programmers]]></description>
										<content:encoded><![CDATA[<p><a href="https://github.com/szabgab/awesome-for-non-programmers"><a href="https://github.com/szabgab/awesome-for-non-programmers">https://github.com/szabgab/awesome-for-non-programmers</a></a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>github pull request</title>
		<link>https://selmantunc.com.tr/software/github-pull-request/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 01 Aug 2023 03:40:20 +0000</pubDate>
				<category><![CDATA[git]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[gitlab]]></category>
		<guid isPermaLink="false">https://selmantunc.com.tr/?p=3135</guid>

					<description><![CDATA[https://medium.com/@cengizhanc/github-ile-a%C3%A7%C4%B1k-kaynak-projelere-katk%C4%B1da-bulunmak-8a0d79090546 BU YAZI YUKARIDAKI LINKTEN ALINMISTIR Uzun zamandır aklımda olan Open-Source projelere dil bağımsız katkıda bulunmak için izlenecek yol yordamı -döküman şeklinde- paylaşıyorum. GitHub != Git Git; kod yönetim ve&#8230;]]></description>
										<content:encoded><![CDATA[<div class="fh fi fj fk fl">
<div class="ab ca">
<div class="ch bg et eu ev ew">
<p data-selectable-paragraph=""><strong><a href="https://medium.com/@cengizhanc/github-ile-a%C3%A7%C4%B1k-kaynak-projelere-katk%C4%B1da-bulunmak-8a0d79090546">https://medium.com/@cengizhanc/github-ile-a%C3%A7%C4%B1k-kaynak-projelere-katk%C4%B1da-bulunmak-8a0d79090546 </a></strong></p>
<p data-selectable-paragraph=""><strong>BU YAZI YUKARIDAKI LINKTEN ALINMISTIR</strong></p>
<p id="3aff" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Uzun zamandır aklımda olan Open-Source projelere dil bağımsız katkıda bulunmak için izlenecek yol yordamı -döküman şeklinde- paylaşıyorum.</p>

<blockquote class="ms mt mu">
<p id="c255" class="lu lv mv lw b lx ly lz ma mb mc md me mw mg mh mi mx mk ml mm my mo mp mq mr fh bj" data-selectable-paragraph=""><strong class="lw fp">GitHub != Git</strong></p>
<p id="6e46" class="lu lv mv lw b lx ly lz ma mb mc md me mw mg mh mi mx mk ml mm my mo mp mq mr fh bj" data-selectable-paragraph="">Git; kod yönetim ve sürüm kontrol sistemidir. GitHub ise Git projelerinizi depolayabileceğiniz çok güçlü bir platformdur.</p>
</blockquote>
<p id="0e40" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph=""><strong class="lw fp">Neden PR yaparız?</strong></p>
<p id="bbf7" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Projede bug olabilir, yeni özellikler kazandırmak isteyebilirsiniz. Bu tarz değişikleri PR yaparak projelere katkıda bulunabilirsiniz.</p>

<h1 id="77d9" class="mz na fo be nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu nv nw bj" data-selectable-paragraph="">1. Fork</h1>
<p id="62d7" class="pw-post-body-paragraph lu lv fo lw b lx nx lz ma mb ny md me mf nz mh mi mj oa ml mm mn ob mp mq mr fh bj" data-selectable-paragraph="">İlk olarak GitHub projemizi forklayalım.</p>
<p id="3b4c" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph=""><em class="mv">Not: Fork, GitHub üzerindeki bir projeyi kendi hesabınıza klonlamanızı sağlar.</em></p>

<figure class="of og oh oi oj le oc od paragraph-image">
<div class="ok ol eb om bg on" role="button">
<div class="oc od oe"><img decoding="async" class="bg lk ll c" role="presentation" src="https://miro.medium.com/v2/resize:fit:1400/1*3aTz-ID51qQtTgtEW5X__w.png" alt="" width="700" height="70"></div>
</div></figure>
<h1 id="01b2" class="mz na fo be nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu nv nw bj" data-selectable-paragraph="">2. Clone</h1>
<p id="566a" class="pw-post-body-paragraph lu lv fo lw b lx nx lz ma mb ny md me mf nz mh mi mj oa ml mm mn ob mp mq mr fh bj" data-selectable-paragraph="">Kendi hesabımıza forkladığımız projeyi bilgisayarımıza indirelim.</p>

<pre class="of og oh oi oj oo op oq or ax os bj"><span id="8c24" class="ot na fo op b hj ou ov l ow ox" data-selectable-paragraph="">git clone PROJE_URL</span></pre>
<figure class="of og oh oi oj le oc od paragraph-image">
<div class="ok ol eb om bg on" role="button">
<div class="oc od oy"><img fetchpriority="high" decoding="async" class="bg lk ll c" role="presentation" src="https://miro.medium.com/v2/resize:fit:1400/1*mhJhjVBGyXOjhk7p2d9UOQ.png" alt="" width="700" height="313"></div>
</div></figure>
<h1 id="f65b" class="mz na fo be nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu nv nw bj" data-selectable-paragraph="">3. Branch!</h1>
<p id="30a9" class="pw-post-body-paragraph lu lv fo lw b lx nx lz ma mb ny md me mf nz mh mi mj oa ml mm mn ob mp mq mr fh bj" data-selectable-paragraph="">Burada birinci kuralımız her işi branch’lere ayırmak olacaktır (master veya develop branch’i üzerinden de gidebilirsiniz ancak tavsiye etmiyorum). İkinci kuralımız, referans branch’imize dikkat etmemiz olacaktır. Genelde bu master olur ama bazen “3.x”,“2.0” gibi sürümler de olabiliyor. Bu duruma göre üzerinden gideceğiniz branch’i seçip ilerlerseniz problem yaşamazsınız.</p>

<pre class="of og oh oi oj oo op oq or ax os bj"><span id="9f24" class="ot na fo op b hj ou ov l ow ox" data-selectable-paragraph=""># referans brach’imizi seçelim.
$ git checkout master </span>
<span id="5c29" class="ot na fo op b hj oz ov l ow ox" data-selectable-paragraph=""># yeni branch açalım
$ git checkout -b yeni-branch-adi</span></pre>
<p id="753a" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Not: Branch adımız çok önemli değil ancak yapacağımız iş ile ilgili açıklayıcı olursa daha sonraki kullanımlarda size kolaylık sağlayacaktır. Örneğin: bugfix-pagination, email-events…</p>
<p id="b21d" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph=""><strong class="lw fp">Artık çalışabilirsiniz.</strong></p>

<h1 id="ad7d" class="mz na fo be nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu nv nw bj" data-selectable-paragraph="">4. Pull Request (PR)</h1>
<blockquote class="ms mt mu">
<p id="2cfb" class="lu lv mv lw b lx ly lz ma mb mc md me mw mg mh mi mx mk ml mm my mo mp mq mr fh bj" data-selectable-paragraph="">Buradaki altın kuralımız, bir branch için sadece 1 kere PR açıyoruz, biz branch’imizi güncellediğimiz zaman açtığımız PR da güncelleniyor.</p>
</blockquote>
<p id="1a73" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Değişiklikleri commit’ledikten sonra artık pushlayabiliriz.</p>

<pre class="of og oh oi oj oo op oq or ax os bj"><span id="8a44" class="ot na fo op b hj ou ov l ow ox" data-selectable-paragraph="">$ git push origin yeni-branch-adi</span></pre>
<p id="ad0b" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Bu adımdan sonra proje anasayfasına gittiğimizde PR açmak için bir buton göreceksiniz (GitHub bunun için bize kolaylık sağlamış).</p>

<figure class="of og oh oi oj le oc od paragraph-image">
<div class="ok ol eb om bg on" role="button">
<div class="oc od pa"><img decoding="async" class="bg lk ll c" role="presentation" src="https://miro.medium.com/v2/resize:fit:1400/1*pFMbAogvzo2RWxSMAD-G2Q.png" alt="" width="700" height="100"></div>
</div></figure>
<p id="962a" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph=""><em class="mv">Not: Eğer bu ekranı göremiyorsanız proje anasayfasından “Pull Requests” sekmesine tıklayın, ardından sağ tarafta bulunan “New pull request” butonunu kullanın.</em></p>
<p id="c0e6" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Sağdaki “pull request” butonuna tıkladıktan sonra aşağıdaki sayfa bizi karşılıyor:</p>

<figure class="of og oh oi oj le oc od paragraph-image">
<div class="ok ol eb om bg on" role="button">
<div class="oc od pb"><img loading="lazy" decoding="async" class="bg lk ll c" role="presentation" src="https://miro.medium.com/v2/resize:fit:1400/1*xASbNMSlAESl7fZh7cyAkw.png" alt="" width="700" height="484"></div>
</div></figure>
<p id="d10c" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Hangi branch’e PR açmak istediğimizi seçiyoruz. Ayrıca otomatik olarak seçili gelen “master” branch’idir.</p>
<p id="904c" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Görsel üzerinde altını çizdiğim bölümde, eğer projede “CONTRIBUTING.md” dosyasının var olduğunu belirten bir uyarıdır. PR için doğru adımları takip etmek için bu dosyayı mutlaka okumalısınız.</p>

<h1 id="7d79" class="mz na fo be nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu nv nw bj" data-selectable-paragraph="">5. Review</h1>
<p id="f00a" class="pw-post-body-paragraph lu lv fo lw b lx nx lz ma mb ny md me mf nz mh mi mj oa ml mm mn ob mp mq mr fh bj" data-selectable-paragraph="">Değişikliklerinizin projeye eklenmesi için, diğer katkıda bulunanlar çalışmanızı gözden geçirecek; değişiklikler isteyecek ya da onaylayacaktır.</p>
<p id="9d53" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Projeye göre çok küçük değişiklikler bile uzun code review sürecinden geçebilir. Bir problem olduğunda hangi değişikliği neden yaptığınızı açıkladığınız zaman sorun olmayacaktır.</p>
<p id="128b" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Not: Her açtığınız PR kabul olmak zorunda değil. Yaptığınız veya yapacağınız bir işi daha önceden başkası yapıp, PR açmış olabilir. Bu sebeple önceden açılan PR’lara bir göz gezdirmenizde fayda var.</p>

<h1 id="1408" class="mz na fo be nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu nv nw bj" data-selectable-paragraph="">Bonus</h1>
<p id="a6bd" class="pw-post-body-paragraph lu lv fo lw b lx nx lz ma mb ny md me mf nz mh mi mj oa ml mm mn ob mp mq mr fh bj" data-selectable-paragraph="">Açık kaynak bir projeyi fork’lamanın en önemli problemi zamanla güncelliğini yitirmesi ve orjinalinden geride kalmasıdır. Orjinal proje linkini yeni remote adresine ekleyerek bu problemi hızlıca çözebilirsiniz.</p>

<pre class="of og oh oi oj oo op oq or ax os bj"><span id="f4e5" class="ot na fo op b hj ou ov l ow ox" data-selectable-paragraph=""># upstream adını verdiğimiz remote url'i ekleyelim.
$ git remote add upstream PROJE_URL</span></pre>
<p id="ee6a" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Bu işlemi yaptıktan sonra bilgisayarınızda 2 adet remote bulunacaktır.</p>

<ol class="">
    <li id="b62a" class="lu lv fo lw b lx ly lz ma mb mc md me mw mg mh mi mx mk ml mm my mo mp mq mr pc pd pe bj" data-selectable-paragraph=""><strong class="lw fp"><em class="mv">origin</em> </strong>forkladığınız projenin remote url’i (sizin hesabınız, okuma ve yazma iznine sahipsiniz.)</li>
    <li id="ce56" class="lu lv fo lw b lx pf lz ma mb pg md me mw ph mh mi mx pi ml mm my pj mp mq mr pc pd pe bj" data-selectable-paragraph="">upstream forkladığınız projenin orjinal remote url’i (orjinal projenin hesabı, sadece okuma iznine sahipsiniz.)</li>
</ol>
<p id="d60b" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Projeyi güncel tutmak için aşağıdaki komutları uygulamanız yeterli olacaktır.</p>

<pre class="of og oh oi oj oo op oq or ax os bj"><span id="10a9" class="ot na fo op b hj ou ov l ow ox" data-selectable-paragraph=""># referans brach’imizi seçelim.
$ git checkout master</span>
<span id="2536" class="ot na fo op b hj oz ov l ow ox" data-selectable-paragraph=""># orjinal projeden değişiklikleri çekelim. &amp;&amp; forkladığımız yere push'layalım.
$ git pull upstream master &amp;&amp; git push origin master</span></pre>
<p id="d6fa" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph=""><strong class="lw fp">Sonuç olarak;</strong></p>

<ol class="">
    <li id="9974" class="lu lv fo lw b lx ly lz ma mb mc md me mw mg mh mi mx mk ml mm my mo mp mq mr pc pd pe bj" data-selectable-paragraph="">Projeyi forkla ve bilgisayarına indir.</li>
    <li id="152b" class="lu lv fo lw b lx pf lz ma mb pg md me mw ph mh mi mx pi ml mm my pj mp mq mr pc pd pe bj" data-selectable-paragraph="">Başlamadan önce, projeyi orjinali ile senkronize tutmak için “remote upstream” oluştur.</li>
    <li id="200d" class="lu lv fo lw b lx pf lz ma mb pg md me mw ph mh mi mx pi ml mm my pj mp mq mr pc pd pe bj" data-selectable-paragraph="">Yapacağın işle ilgili branch oluştur.</li>
    <li id="6c1f" class="lu lv fo lw b lx pf lz ma mb pg md me mw ph mh mi mx pi ml mm my pj mp mq mr pc pd pe bj" data-selectable-paragraph="">Değişiklikleri yap, commit mesajını yaz ve “CONTRIBUTING.md” dosyası varsa oku.</li>
    <li id="bcd3" class="lu lv fo lw b lx pf lz ma mb pg md me mw ph mh mi mx pi ml mm my pj mp mq mr pc pd pe bj" data-selectable-paragraph="">Forkladığın projeye push’la</li>
    <li id="4962" class="lu lv fo lw b lx pf lz ma mb pg md me mw ph mh mi mx pi ml mm my pj mp mq mr pc pd pe bj" data-selectable-paragraph="">Yeni bir PR oluştur.</li>
    <li id="1e09" class="lu lv fo lw b lx pf lz ma mb pg md me mw ph mh mi mx pi ml mm my pj mp mq mr pc pd pe bj" data-selectable-paragraph="">Katkıda bulunmanın tadını çıkar ve açtığın PR’ı takip etmeyi unutma.</li>
</ol>
<p id="2978" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Umarım faydalı olur. Aklınıza takılan sorular ve eklemek istediklerinizi lütfen yorum olarak yazın.</p>
<p id="3e94" class="pw-post-body-paragraph lu lv fo lw b lx ly lz ma mb mc md me mf mg mh mi mj mk ml mm mn mo mp mq mr fh bj" data-selectable-paragraph="">Bir sonraki yazıda görüşmek üzere!</p>

</div>
</div>
</div>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Git Notes</title>
		<link>https://selmantunc.com.tr/article/git-notes/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 15 Aug 2020 21:54:04 +0000</pubDate>
				<category><![CDATA[article]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[bitbucket]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[gitlab]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[notes git]]></category>
		<category><![CDATA[version]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2020/08/15/git-notes/</guid>

					<description><![CDATA[My Favorites Git Notes —-Quick Git init —— echo “# rtrt” &#62;&#62; README.md git init git add README.md git commit -m “first commit” git remote add origin git@github.com:stnc/react-native-for-wordpress.git git push&#8230;]]></description>
										<content:encoded><![CDATA[<p><b>
My Favorites Git Notes
</b></p>
<figure class="tmblr-full" data-orig-width="1268" data-orig-height="756"><figure id="attachment_mmd_2171" class="wp-block-image "><img decoding="async" width="1268" height="322" src="https://selmantunc.com.tr/wp-content/uploads/2023/07/352a1df67df8368b18cd73f7ccba257f7fe68c50.png" class="attachment-full size-full" alt="image" loading="lazy" /></figure></figure>
<h2><b>—-Quick Git init ——</b></h2>
<p>echo “# rtrt” &gt;&gt; README.md</p>
<p>git init</p>
<p>git add README.md</p>
<p>git commit -m “first commit”</p>
<p>git remote add origin git@github.com:stnc/react-native-for-wordpress.git</p>
<p>git push -u origin master</p>
<p>&nbsp;</p>
<h2><b>CREATE NEW BRACH</b></h2>
<p>Create a new branch:
<b>git checkout -b feature/quiz</b></p>
<p>Edit, add and commit your files.</p>
<p>Push your branch to the remote repository:
<b>git push -u origin feature/quiz</b></p>
<h2><b>BRANCH DELETE </b></h2>
<p>For local
<b>git branch -d feature/quiz
</b></p>
<blockquote>To delete a remote branch, we do not use the “git branch” command &#8211; but instead “git push” with the “–delete” flag:</blockquote>
<p>For Remote</p>
<p><b>git push origin &#8211; -delete public  </b></p>
<h2><b>TAG CREATED</b></h2>
<p>The syntax to create git tags is simply:</p>
<p>Create</p>
<p><b>git tag 1.0</b></p>
<p>git remote push</p>
<p><b>git push origin 1.0</b></p>
<p>or Push up all the tags</p>
<p><b>git push origin –tags</b></p>
<h2><b> TAG DELETE</b></h2>
<p>How to delete a git tag locally and remote</p>
<p><b>Remote</b></p>
<pre><code>git push --delete origin v1.0</code></pre>
<p><b>Local</b></p>
<pre><code>git tag -d v1.0</code></pre>
<h2>DİFF</h2>
<p>git diff master chapter2</p>
<h2><b>MERGE </b></h2>
<p>feature/panel dalına yapılan işlemlerin master‘a da yapılmasını istiyoruz. Bunun için önce dalı nereye merge etmek istiyorsak o dala git checkout ile geçiş yapmamız gerekiyor. git merge komutunu kullanabiliriz.</p>
<p>Yani önce bulunduğun dalda son commiti at</p>
<p>git commit -m “MERGE”</p>
<p>Sonra master dalına git</p>
<p>git checkout master</p>
<p>git branch</p>
<p>git merge feature/panel</p>
<p>Commite gitme</p>
<p><a href="https://medium.com/nafidurmus/git-son-de%C4%9Fi%C5%9Fiklikleri-commiti-geri-alma-%C3%B6rnekli-f9bc1030f8c4"><a href="https://medium.com/nafidurmus/git-son-de%C4%9Fi%C5%9Fiklikleri-commiti-geri-alma-%C3%B6rnekli-f9bc1030f8c4">https://medium.com/nafidurmus/git-son-de%C4%9Fi%C5%9Fiklikleri-commiti-geri-alma-%C3%B6rnekli-f9bc1030f8c4</a></a>
&nbsp;</p>
<p>&nbsp;
<a href="https://github.com/firstcontributions/first-contributions?tab=readme-ov-file"><a href="https://github.com/firstcontributions/first-contributions?tab=readme-ov-file">https://github.com/firstcontributions/first-contributions?tab=readme-ov-file</a></a>
&nbsp;</p>
<p>&nbsp;</p>
<p><a href="https://github.com/firstcontributions/first-contributions/blob/main/docs/translations/README.tr.md"><a href="https://github.com/firstcontributions/first-contributions/blob/main/docs/translations/README.tr.md">https://github.com/firstcontributions/first-contributions/blob/main/docs/translations/README.tr.md</a></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
