guides/git_explain.md
moriatak 4574d6dfce
Some checks are pending
Deploy via SSH key / deploy (push) Waiting to run
add git explain
2025-11-16 12:44:00 +02:00

46 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 📘 Git Commands in VS Code
## 🔹 פתיחת טרמינל
ניתן לפתוח את הטרמינל בתוך Visual Studio Code: 1. לחצו על **Terminal →
New Terminal**\
2. הטרמינל ייפתח למטה עם הנתיב של התיקייה שפתוחה בקוד.
------------------------------------------------------------------------
## 🔹 פקודות Git בסיסיות
### הוספת קבצים:
``` bash
git add [שם-הקובץ]
```
או כדי להוסיף את כל הקבצים:
``` bash
git add .
```
### יצירת Commit עם הודעה:
``` bash
git commit -m "הודעה לקומיט תיאור השינויים"
```
### דחיפה (Push) ל־main:
``` bash
git push -u origin main
```
------------------------------------------------------------------------
## 💡 טיפ:
אפשר גם לנהל את ההוספה והקומיטים דרך הצד השמאלי של VS Code -- בלשונית
**Source Control** (סמל של ענף Git), שם ניתן לראות את כל השינויים ולבצע
Commit ו־Push בקלות.