<?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>Programming Archives - PahamWeb</title>
	<atom:link href="https://pahamweb.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>https://pahamweb.com/category/programming/</link>
	<description>Jasa Pembuatan Website Profesional &#38; Desain Grafis</description>
	<lastBuildDate>Mon, 30 Mar 2026 13:43:30 +0000</lastBuildDate>
	<language>id</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://pahamweb.com/wp-content/uploads/2023/02/elementor/thumbs/Fav-Logo-PahamWeb-512-01-r1kiu73pde9nmg2ichpiybwu8nga8mk26pkojj39mc.webp</url>
	<title>Programming Archives - PahamWeb</title>
	<link>https://pahamweb.com/category/programming/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Git Cheat Sheet</title>
		<link>https://pahamweb.com/git-cheat-sheet/</link>
		
		<dc:creator><![CDATA[Fauzi Ahmad Kamil]]></dc:creator>
		<pubDate>Thu, 27 Mar 2025 02:08:32 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[pemrograman]]></category>
		<category><![CDATA[programming]]></category>
		<guid isPermaLink="false">https://pahamweb.com/?p=4244</guid>

					<description><![CDATA[<p>Membuat Repository Perintah Keterangan git init [nama_proyek] Membuat repository Git baru secara lokal. git clone [url] Mengunduh repository dari sumber yang ada. Mengamati Repository Perintah Keterangan git status Menampilkan daftar file yang diubah tetapi belum dikomit. git diff Menampilkan perbedaan dalam file yang belum ditambahkan ke staging area. git diff --cached Menampilkan perbedaan dalam file [&#8230;]</p>
<p>The post <a href="https://pahamweb.com/git-cheat-sheet/">Git Cheat Sheet</a> appeared first on <a href="https://pahamweb.com">PahamWeb</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h4 class="kt-adv-heading4244_ee0ee3-65 wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading4244_ee0ee3-65"><strong>Membuat Repository</strong></h4>



<figure class="wp-block-table is-style-stripes"><table class="has-fixed-layout"><thead><tr><th>Perintah</th><th>Keterangan</th></tr></thead><tbody><tr><td><code>git init [nama_proyek]</code></td><td>Membuat repository Git baru secara lokal.</td></tr><tr><td><code>git clone [url]</code></td><td>Mengunduh repository dari sumber yang ada.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>



<h4 class="kt-adv-heading4244_a672af-8f wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading4244_a672af-8f"><strong>Mengamati Repository</strong></h4>



<figure class="wp-block-table is-style-stripes"><table class="has-fixed-layout"><thead><tr><th>Perintah</th><th>Keterangan</th></tr></thead><tbody><tr><td><code>git status</code></td><td>Menampilkan daftar file yang diubah tetapi belum dikomit.</td></tr><tr><td><code>git diff</code></td><td>Menampilkan perbedaan dalam file yang belum ditambahkan ke staging area.</td></tr><tr><td><code>git diff --cached</code></td><td>Menampilkan perbedaan dalam file yang sudah ditambahkan ke staging area.</td></tr><tr><td><code>git diff HEAD</code></td><td>Menampilkan semua perubahan yang telah dan belum di-staging.</td></tr><tr><td><code>git diff [commit1] [commit2]</code></td><td>Membandingkan perubahan antara dua commit tertentu.</td></tr><tr><td><code>git blame [file]</code></td><td>Menampilkan riwayat perubahan dan penulis dari setiap baris dalam file tertentu.</td></tr><tr><td><code>git show [commit]:[file]</code></td><td>Menampilkan perubahan pada commit tertentu dan/atau file tertentu.</td></tr><tr><td><code>git log</code></td><td>Menampilkan riwayat perubahan di repository.</td></tr><tr><td><code>git log -p [file/directory]</code></td><td>Menampilkan riwayat perubahan dari file/direktori beserta diff-nya.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>



<h4 class="kt-adv-heading4244_c00841-9a wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading4244_c00841-9a"><strong>Bekerja dengan Branch</strong></h4>



<figure class="wp-block-table is-style-stripes"><table class="has-fixed-layout"><thead><tr><th>Perintah</th><th>Keterangan</th></tr></thead><tbody><tr><td><code>git branch</code></td><td>Menampilkan daftar branch lokal.</td></tr><tr><td><code>git branch -av</code></td><td>Menampilkan semua branch, baik lokal maupun remote.</td></tr><tr><td><code>git checkout [branch]</code></td><td>Beralih ke branch tertentu dan memperbarui direktori kerja.</td></tr><tr><td><code>git branch [new_branch]</code></td><td>Membuat branch baru.</td></tr><tr><td><code>git branch -d [branch]</code></td><td>Menghapus branch lokal tertentu.</td></tr><tr><td><code>git checkout -b [new_branch]</code></td><td>Membuat branch baru dan langsung berpindah ke branch tersebut.</td></tr><tr><td><code>git merge [branch]</code></td><td>Menggabungkan branch tertentu ke branch saat ini.</td></tr><tr><td><code>git rebase [branch]</code></td><td>Menerapkan perubahan dari branch tertentu ke branch saat ini.</td></tr><tr><td><code>git tag [tag_name]</code></td><td>Menandai commit saat ini dengan tag tertentu.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>



<h4 class="kt-adv-heading4244_1e5181-80 wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading4244_1e5181-80"><strong>Melakukan Perubahan</strong></h4>



<figure class="wp-block-table is-style-stripes"><table class="has-fixed-layout"><thead><tr><th>Perintah</th><th>Keterangan</th></tr></thead><tbody><tr><td><code>git add [file]</code></td><td>Menambahkan file ke staging area.</td></tr><tr><td><code>git add .</code></td><td>Menambahkan semua file yang diubah ke staging area.</td></tr><tr><td><code>git commit -m "pesan commit"</code></td><td>Menyimpan perubahan yang sudah di-staging ke dalam riwayat repository.</td></tr><tr><td><code>git commit -am "pesan commit"</code></td><td>Menyimpan semua file yang telah dilacak langsung ke dalam commit.</td></tr><tr><td><code>git reset [file]</code></td><td>Menghapus file dari staging area, tetapi perubahan tetap ada di dalam file.</td></tr><tr><td><code>git reset --hard</code></td><td>Mengembalikan semua perubahan ke commit terakhir.</td></tr><tr><td><code>git stash</code></td><td>Menyimpan sementara perubahan di working directory.</td></tr><tr><td><code>git stash pop</code></td><td>Mengembalikan perubahan yang disimpan sementara dari stash.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>



<h4 class="kt-adv-heading4244_f54f71-27 wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading4244_f54f71-27"><strong>Sinkronisasi Repository</strong></h4>



<figure class="wp-block-table is-style-stripes"><table class="has-fixed-layout"><thead><tr><th>Perintah</th><th>Keterangan</th></tr></thead><tbody><tr><td><code>git fetch</code></td><td>Mengambil perubahan terbaru dari repository remote tanpa menggabungkannya.</td></tr><tr><td><code>git pull</code></td><td>Mengambil perubahan terbaru dari repository remote dan langsung menggabungkannya.</td></tr><tr><td><code>git pull --rebase</code></td><td>Mengambil perubahan terbaru dan melakukan rebase untuk menghindari merge commit.</td></tr><tr><td><code>git push</code></td><td>Mengirim perubahan lokal ke repository remote.</td></tr><tr><td><code>git push --force</code></td><td>Memaksa pengiriman perubahan ke remote (hati-hati dengan perintah ini!).</td></tr><tr><td><code>git remote add origin [url]</code></td><td>Menambahkan repository remote sebagai origin.</td></tr><tr><td><code>git remote -v</code></td><td>Menampilkan daftar repository remote yang dikonfigurasi.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>



<h4 class="kt-adv-heading4244_453b96-d2 wp-block-kadence-advancedheading" data-kb-block="kb-adv-heading4244_453b96-d2"><strong>Lain-lain</strong></h4>



<figure class="wp-block-table is-style-stripes"><table class="has-fixed-layout"><thead><tr><th>Perintah</th><th>Keterangan</th></tr></thead><tbody><tr><td><code>git remote add origin &lt;link github></code></td><td>Menghubungkan repository lokal ke repository yang ada di GitHub</td></tr><tr><td><code>git remote -v</code></td><td>Melihat daftar remote repository yang terhubung dengan repository lokal</td></tr><tr><td><code>git help [command]</code></td><td>Menampilkan dokumentasi untuk perintah tertentu.</td></tr><tr><td><code>git config --global user.name "Nama Anda"</code></td><td>Mengatur nama pengguna untuk semua repository lokal.</td></tr><tr><td><code>git config --global user.email "email@example.com"</code></td><td>Mengatur email pengguna untuk semua repository lokal.</td></tr><tr><td><code>git config --list</code></td><td>Menampilkan semua konfigurasi Git yang sedang digunakan.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://pahamweb.com/git-cheat-sheet/">Git Cheat Sheet</a> appeared first on <a href="https://pahamweb.com">PahamWeb</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
