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
Merge PR #29: add metric screw hole cutters
# Conflicts: # apps/web/src/components/SketchForgeEditor.tsx # apps/web/src/components/WorkplaneViewport.tsx # apps/web/src/lib/workplaneShapes.ts # apps/web/src/types/sketchforge.ts
This commit is contained in:
@@ -80,6 +80,15 @@ describe("SketchForge .skf project packages", () => {
|
||||
mirrorX: index === 5,
|
||||
sides: index + 3,
|
||||
text: kind === "text" ? "Editable" : undefined,
|
||||
screwHole: index === 0 ? {
|
||||
metric: "M3",
|
||||
screwLength: 8,
|
||||
head: "socket",
|
||||
fit: "standard",
|
||||
mount: "clearance",
|
||||
depthMode: "through",
|
||||
depth: 16,
|
||||
} : undefined,
|
||||
sketchProfile: kind === "sketch" ? {
|
||||
points: [
|
||||
{ id: "p1", x: 0, z: 0 },
|
||||
@@ -104,6 +113,7 @@ describe("SketchForge .skf project packages", () => {
|
||||
expect(restored.workspace).toEqual(DEFAULT_WORKPLANE_WORKSPACE);
|
||||
expect(restored.snapGrid).toBe(DEFAULT_SNAP_GRID);
|
||||
expect(restored.placementElevation).toBe(12.5);
|
||||
expect(restored.shapes[0].screwHole?.metric).toBe("M3");
|
||||
expect(document.assets.filter((entry) => entry.kind === "derived-mesh")).toHaveLength(0);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user