Skip to content

Git#

Git คือระบบ distributed version control แบบ open-source ที่ออกแบบมาให้รองรับทั้งโปรเจ็กต์ขนาดเล็กและใหญ่ได้อย่างรวดเร็วและมีประสิทธิภาพ

Credentials

คุณสามารถดูข้อมูลการตั้งค่า authentication สำหรับ node นี้ได้ที่ Git credential

Operations#

  • Add เพิ่มไฟล์หรือโฟลเดอร์เข้า commit (เหมือน git add)
  • Add Config: เพิ่ม property ใน config (เหมือน git config)
  • Clone โคลน repository (เหมือน git clone)
  • Commit commit ไฟล์หรือโฟลเดอร์ (เหมือน git commit)
  • Fetch ดึงข้อมูลจาก remote repository (เหมือน git fetch)
  • List Config: ดู config ปัจจุบัน (เหมือน git config)
  • Log: ดูประวัติ commit (เหมือน git log)
  • Pull ดึงข้อมูลจาก remote repository (เหมือน git pull)
  • Push ส่งข้อมูลไป remote repository (เหมือน git push)
  • Push Tags ส่ง tag ไป remote repository (เหมือน git push --tags)
  • ดู Status ของ repository ปัจจุบัน (เหมือน git status)
  • สร้าง Tag ใหม่ (เหมือน git tag)
  • User Setup: ตั้งค่าผู้ใช้

ดูรายละเอียด parameter และ options ของแต่ละ operation ได้ในหัวข้อด้านล่าง

Add#

ตั้งค่า operation นี้ด้วย parameter เหล่านี้:

  • Repository Path: กรอก path ของ git repository ในเครื่อง
  • Paths to Add: กรอก path ของไฟล์หรือโฟลเดอร์ที่ต้องการ add (คั่นด้วย comma) จะใช้ path แบบ absolute หรือ relative จาก Repository Path ก็ได้

Add Config#

ตั้งค่า operation นี้ด้วย parameter เหล่านี้:

  • Repository Path: กรอก path ของ git repository ในเครื่อง
  • Key: กรอกชื่อ key ที่ต้องการตั้งค่า
  • Value: กรอกค่าของ key

Add Config options#

add config operation จะมี option Mode ให้เลือกว่าจะ Set หรือ Append ค่าใน local config

Clone#

ตั้งค่า operation นี้ด้วย parameter เหล่านี้:

  • Repository Path: กรอก path ของ git repository ในเครื่อง
  • Authentication: เลือก Authenticate เพื่อใช้ credentials หรือ None ถ้าไม่ต้องการใช้ authentication
    • ถ้าเลือก Authenticate ต้องเลือกหรือสร้าง credentials สำหรับ node นี้ ดูรายละเอียดที่ Git credential
  • New Repository Path: กรอก path ที่ต้องการเก็บ repository ที่โคลนมา
  • Source Repository: กรอก URL หรือ path ของ repository ที่ต้องการโคลน

Commit#

ตั้งค่า operation นี้ด้วย parameter เหล่านี้:

  • Repository Path: กรอก path ของ git repository ในเครื่อง
  • Message: กรอกข้อความ commit

Commit options#

commit operation จะมี option Paths to Add ถ้าต้องการ commit ไฟล์หรือโฟลเดอร์ที่ "add" ไว้ทั้งหมด ให้เว้นว่างไว้ ถ้าต้องการ commit เฉพาะไฟล์หรือโฟลเดอร์ที่ระบุ ให้กรอก path (คั่นด้วย comma)

จะใช้ path แบบ absolute หรือ relative จาก Repository Path ก็ได้

Fetch#

operation นี้มี parameter เดียวคือ Repository Path ให้กรอก path ของ git repository ในเครื่อง

List Config#

operation นี้มี parameter เดียวคือ Repository Path ให้กรอก path ของ git repository ในเครื่อง

Log#

ตั้งค่า operation นี้ด้วย parameter เหล่านี้:

  • Repository Path: กรอก path ของ git repository ในเครื่อง
  • Return All: เปิดเพื่อให้ node คืนค่าทั้งหมด ปิดเพื่อกำหนด Limit
  • Limit: แสดงเมื่อปิด Return All กรอกจำนวนสูงสุดที่ต้องการคืนค่า

Log options#

log operation จะมี option File กรอก path ของไฟล์หรือโฟลเดอร์ที่ต้องการดูประวัติ

จะใช้ path แบบ absolute หรือ relative จาก Repository Path ก็ได้

Pull#

operation นี้มี parameter เดียวคือ Repository Path ให้กรอก path ของ git repository ในเครื่อง

Push#

ตั้งค่า operation นี้ด้วย parameter เหล่านี้:

  • Repository Path: กรอก path ของ git repository ในเครื่อง
  • Authentication: เลือก Authenticate เพื่อใช้ credentials หรือ None ถ้าไม่ต้องการใช้ authentication
    • ถ้าเลือก Authenticate ต้องเลือกหรือสร้าง Credential for Git สำหรับ node นี้ ดูรายละเอียดที่ Git credential

Push options#

push operation จะมี option Target Repository กรอก URL หรือ path ของ repository ที่ต้องการ push

Push Tags#

operation นี้มี parameter เดียวคือ Repository Path ให้กรอก path ของ git repository ในเครื่อง

Status#

operation นี้มี parameter เดียวคือ Repository Path ให้กรอก path ของ git repository ในเครื่อง

Tag#

ตั้งค่า operation นี้ด้วย parameter เหล่านี้:

  • Repository Path: กรอก path ของ git repository ในเครื่อง
  • Name: กรอกชื่อ tag ที่ต้องการสร้าง

User Setup#

operation นี้มี parameter เดียวคือ Repository Path ให้กรอก path ของ git repository ในเครื่อง

Templates and examples#

Back Up Your n8n Workflows To Github

by Jonathan

View template details
Building RAG Chatbot for Movie Recommendations with Qdrant and Open AI

by Jenny

View template details
ChatGPT Automatic Code Review in Gitlab MR

by assert

View template details
Browse Git integration templates, or search all templates