From 4574d6dfce593edae11d7e1a6f58107ec6dbe646 Mon Sep 17 00:00:00 2001 From: moriatak Date: Sun, 16 Nov 2025 12:44:00 +0200 Subject: [PATCH] add git explain --- .github/workflows/deploy.yml | 23 ++++++++++++++++++ git_explain.md | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 git_explain.md diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7de5d53 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Deploy via SSH key + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Copy files to server via SSH + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + source: "./*" + target: "/apps/swagger/mkdocs/companys-int/Adora" diff --git a/git_explain.md b/git_explain.md new file mode 100644 index 0000000..b253726 --- /dev/null +++ b/git_explain.md @@ -0,0 +1,45 @@ +# 📘 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 בקלות. + +