add git explain
Some checks are pending
Deploy via SSH key / deploy (push) Waiting to run

This commit is contained in:
moriatak 2025-11-16 12:44:00 +02:00
parent 8fe71417d2
commit 4574d6dfce
2 changed files with 68 additions and 0 deletions

23
.github/workflows/deploy.yml vendored Normal file
View File

@ -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"

45
git_explain.md Normal file
View File

@ -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 בקלות.