Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
36 lines
1.2 KiB
PHP
36 lines
1.2 KiB
PHP
<h2>Latest Products</h2>
|
|
<p>Welcome to our dynamic product catalog. (Intentionally filled with errors)</p>
|
|
|
|
<?php
|
|
$products = [
|
|
['id' => 1, 'name' => 'Super Gadget', 'image' => 'gadget.jpg', 'price' => '$99'],
|
|
['id' => 2, 'name' => 'Mega Widget', 'image' => 'widget.png', 'price' => '$49'],
|
|
['id' => 3, 'name' => 'Ultra Thing', 'image' => 'thing.jpg', 'price' => '$199'],
|
|
];
|
|
?>
|
|
|
|
<div class="products">
|
|
<?php foreach ($products as $product): ?>
|
|
<div class="card">
|
|
<!-- ERROR: Dynamic image without alt text -->
|
|
<img src="images/<?php echo $product['image']; ?>" width="100">
|
|
<h3>
|
|
<?php echo $product['name']; ?>
|
|
</h3>
|
|
<p>
|
|
<?php echo $product['price']; ?>
|
|
</p>
|
|
<button class="btn">Buy Now</button>
|
|
<!-- Error: Button might need specific accessible name if icon-only, but text is okay here. -->
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<h3>Sponsors</h3>
|
|
<div>
|
|
<!-- ERROR: Decorative image causing noise, missing alt="" -->
|
|
<img src="https://via.placeholder.com/150">
|
|
<img src="https://via.placeholder.com/150">
|
|
</div>
|