Pulling လုပ်ခြင်း
Pulling ဆိုတာ ဘာလဲ?
Section titled “Pulling ဆိုတာ ဘာလဲ?”Git Pull ဆိုတာ Online (Remote) Repository မှာ အသစ်ရောက်နေတဲ့ အပြောင်းအလဲတွေကို ကိုယ့် ကွန်ပျူတာထဲ ဆွဲယူပြီး၊ Project ထဲကို ပေါင်းထည့်လိုက်တာ ဖြစ်ပါတယ်။
အဓိက အရေးကြီးတဲ့ အချက်များ
Section titled “အဓိက အရေးကြီးတဲ့ အချက်များ”- အဖွဲ့လိုက် အလုပ်လုပ်တဲ့အခါ အခြားသူတွေ ပြင်ဆင်ထားတာတွေကို ရယူနိုင်ဖို့
- ကွန်ပျူတာ အများကြီး သုံးပြီး အလုပ်လုပ်တဲ့အခါ Project ကို အမြဲ Update ဖြစ်အောင် (Sync လုပ်ဖို့)
Pull လုပ်နည်း
Section titled “Pull လုပ်နည်း”အခြေခံ Command ပုံစံ:
git pull <remote-name> <branch-name>ဥပမာ:
git pull origin mainဒီ Command က origin လို့ နာမည်ပေးထားတဲ့ Remote ရဲ့ main Branch က အပြောင်းအလဲတွေကို ဆွဲယူပြီး၊ ကိုယ့် Local Branch ထဲ ပေါင်းထည့်ပေးတာ ဖြစ်ပါတယ်။
Git Pull က ဘယ်လို အလုပ်လုပ်သလဲ?
Section titled “Git Pull က ဘယ်လို အလုပ်လုပ်သလဲ?”Git Pull က အဓိက အဆင့် (၂) ဆင့်ခွဲပြီး အလုပ်လုပ်ပါတယ် -
git fetch: Remote ကနေ အပြောင်းအလဲတွေကို အရင် Download လုပ်ယူပါတယ်။git merge: ဆွဲယူထားတဲ့ အပြောင်းအလဲတွေကို ကိုယ့် Branch ထဲ အလိုအလျောက် ပေါင်းထည့်ပေးပါတယ်။
လက်တွေ့ စမ်းသပ်ကြည့်ရန်
Section titled “လက်တွေ့ စမ်းသပ်ကြည့်ရန်”- GitHub ကနေ ကိုယ့် Repository ကို ဖွင့်ပြီး
README.mdဖိုင်ကို အွန်လိုင်းမှာ တိုက်ရိုက် ပြင်ဆင်ပါ။ - GitHub ပေါ်မှာပဲ Commit လုပ်လိုက်ပါ။
- ပြီးရင် ကိုယ့် Local Terminal ကနေ
git pull origin mainလို့ ရိုက်ပါ။ - Local က
README.mdဖိုင်ကို ပြန်ဖွင့်ကြည့်တဲ့အခါ GitHub မှာ ပြင်ခဲ့တဲ့ အပြောင်းအလဲတွေ အလိုအလျောက် ရောက်လာတာကို တွေ့ရပါလိမ့်မယ်။