This commit is contained in:
parent
8fe71417d2
commit
4574d6dfce
23
.github/workflows/deploy.yml
vendored
Normal file
23
.github/workflows/deploy.yml
vendored
Normal 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
45
git_explain.md
Normal 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 בקלות.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user