TurterDev.com
  • Welcome
  • พื้นฐานคำสั่ง Linux Command
    • Linux Command
    • Linux Command (ต่อ)
    • ใช้งาน VI และ VIM
    • Shell script
    • Vagrant
  • การเขียนโปรแกรมเชิงวัตถุ OOP
    • การเขียนโปรแกรมเชิงวัตถุ
      • เริ่มต้นเขียนโปรแกรมเชิงวัตถุด้วย Javascript
  • Git
    • คำสั่งสำหรับใช้งาน Git
    • Branch,Merge,Stash
    • Remote Repository
  • คำสั่งใช้งาน Docker
    • 🐳Docker
      • Docker Command
  • Kubernetes
    • Kubernetes (K8s)
      • Install Cilium on kubernetes (เปลี่ยนจาก Calico เป็น Cilium บน K8s)
      • Install Kubernetes on Ubuntu 24.04 LTS (Kube-VIP)
      • How to Install Kubernetes Cluster on CentOS 7
  • Etc
    • Kubernetes (K8s)
      • สรุปการพัฒนา Application แบบ The Twelve-Factor แบบสั้นๆง่ายๆ
  • Website
  • Facebook
  • Instagram
Powered by GitBook
On this page
  1. Git

Remote Repository

คำสั่งที่เกี่ยวกับการจัดการ Remote Repository

// Clone Projrct จาก Git Repository
git clone <repo>

// แสดงชื่อและ url ของ remote repo
git remote
หรือ 
git remote -v

// เพิ่มชื่อและ url ของ remote repo
git remote add <remote name> <remote url>

// ส่งไฟล์ทั้งหมดไปยัง repo
git push -u <ชื่อ branch remote> <ชื่อ branch local>

// ตรวจสอบที่ remote มีการแก้ไขอะไรหรือไม่
git fetch <ชื่อ branch remote>
ตัวอย่าง git fetch origin

// การ pull ไฟล์จาก repo 
git pull <ชื่อ branch remote> <ชื่อ branch local>
PreviousBranch,Merge,StashNextDocker

Last updated 1 year ago