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
Major upgrade v2.0.0
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<h2>Contact Us</h2>
|
||||
<p>Get in touch with us.</p>
|
||||
|
||||
<form action="" method="post">
|
||||
<div style="margin-bottom: 1rem;">
|
||||
<!-- ERROR: No label for input -->
|
||||
<div>Name:</div>
|
||||
<input type="text" name="fullname" placeholder="John Doe" style="padding: 8px; width: 100%;">
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 1rem;">
|
||||
<!-- ERROR: Label exists but not associated with For/ID -->
|
||||
<label>Email Address</label>
|
||||
<br>
|
||||
<input type="email" name="email" style="padding: 8px; width: 100%;">
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 1rem;">
|
||||
<label for="message">Message</label>
|
||||
<br>
|
||||
<textarea id="message" name="message" rows="5" style="width: 100%;"></textarea>
|
||||
</div>
|
||||
|
||||
<!-- ERROR: Submit button without clear text if it was an input type=image, but button is usually fine.
|
||||
Let's add a problematic icon link -->
|
||||
<a href="#" class="btn">
|
||||
<i class="fa fa-send"></i> <!-- Empty link text error (if we had that rule) -->
|
||||
</a>
|
||||
|
||||
<button type="submit" class="btn">Send Message</button>
|
||||
</form>
|
||||
@@ -0,0 +1,36 @@
|
||||
<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>
|
||||
@@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html> <!-- Missing lang attribute error -->
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>YakNet Dynamic Demo</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #333;
|
||||
color: #fff;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: #fff;
|
||||
margin-right: 1rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 2rem;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 1px solid #ddd;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
background: #007bff;
|
||||
color: white;
|
||||
padding: 0.5rem 1rem;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="padding: 0;">
|
||||
<h1>My Dynamic Site</h1>
|
||||
<nav>
|
||||
<a href="?page=home">Home</a>
|
||||
<a href="?page=contact">Contact</a>
|
||||
<a href="?page=about">About</a>
|
||||
<a href="#" class="btn"></a> <!-- Error: Empty Link -->
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<?php include $viewPath; ?>
|
||||
</main>
|
||||
|
||||
<footer style="text-align: center; padding: 2rem; background: #f4f4f4; margin-top: 2rem;">
|
||||
©
|
||||
<?php echo date('Y'); ?> YakNet Demo
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user