Skip to content
GitHub

Repository များကို ကူးယူခြင်း (Cloning)

Cloning ဆိုတာ အွန်လိုင်းပေါ်က Repository တစ်ခုလုံးကို ကိုယ့်ကွန်ပျူတာထဲသို့ ကူးယူလိုက်တာပါ။ ၎င်းတွင်:

  • ဖိုင်အားလုံး
  • မှတ်တမ်းအားလုံး (history)
  • Branch အားလုံး
  • Remote နှင့် ချိတ်ဆက်မှု (origin အဖြစ် အလိုအလျောက် ချိတ်ဆက်ပေး)

ဘာကြောင့် Clone လုပ်ကြလဲ?

Section titled “ဘာကြောင့် Clone လုပ်ကြလဲ?”
  1. ရှိပြီးသား Project တစ်ခုကို စတင်အလုပ်လုပ်ရန်
  2. Open-source Project များကို ကူညီရေးသားရန်
  3. အဖွဲ့ဝင်များ၏ Code ကို ကြည့်ရှုလေ့လာရန်

အခြေခံ command ပုံစံ:

Bash
git clone <remote-url>

လုပ်ဆောင်ရန် အဆင့်များ

Section titled “လုပ်ဆောင်ရန် အဆင့်များ”
  1. Repository URL ရယူပါ
    • GitHub, GitLab စသည့် ဝဘ်ဆိုဒ်များမှ "Code" သို့မဟုတ် "Clone" ခလုတ်ကိုနှိပ်ပြီး URL ကို ကူးယူပါ
  2. Terminal ဖွင့်ပါ
    • ကူးယူလိုသော နေရာသို့ သွားပါ (ဥပမာ - cd Documents/ )
  3. Clone လုပ်ပါ
    • အောက်ပါ command ကိုရိုက်ပါ:
Bash
git clone https://github.com/SomeUser/SomeAwesomeProject.git

ဒီ command က Project အမည်ဖြင့် Folder အသစ်တစ်ခု ဖန်တီးပြီး Repository တစ်ခုလုံးကို ထည့်သွင်းပေးပါမည်။

လက်တွေ့စမ်းသပ်ကြည့်ရန်

Section titled “လက်တွေ့စမ်းသပ်ကြည့်ရန်”

GitHub မှာ စိတ်ဝင်စားဖွယ် Repository တစ်ခုရှာပြီး HTTPS clone URL ကို ကူးယူပါ။ ကိုယ့် Terminal မှာ git clone <URL> လို့ရိုက်ပြီး ရလာတဲ့ folder ကို ဖွင့်ကြည့်ပါ။ Repository တစ်ခုလုံး ကိုယ့်စက်ထဲ ရောက်လာတာ တွေ့ရပါလိမ့်မယ်။