Skip to content

Instantly share code, notes, and snippets.

@ronaldaug
Last active January 14, 2022 03:26
Show Gist options
  • Save ronaldaug/267d930e774b3af953f16405acf1a843 to your computer and use it in GitHub Desktop.
Save ronaldaug/267d930e774b3af953f16405acf1a843 to your computer and use it in GitHub Desktop.
Shan Git Cheat Sheet

(1) လၢႆးသိမ်း ဢၼ်ႁဝ်းမူၼ်ႉမေးဝႆႉၼၼ်ႉ

git add . ( သႂ်ႇတၢင်းမူတ်း )

git add .

git add index.html ( သႂ်ႇ index.html ဢၼ်လဵဝ် )

git add index.html

git commit -m ( တႅမ်ႈ ၶေႃႈမၢႆမၼ်း )

git commit -m "Hello world"

(2) လၢႆးၸၼ် လၢႆးသူင်ႇ ၼိူဝ် github/online ၼၼ်ႉ

git remote -v ၸႅတ်ႈတူၺ်း link မၼ်းမီးဢမ်ႇမီး

git remote -v

git add origin main {url} သႂ်ႇ link မၼ်းတႃႇတၢင်ႇၼိူဝ် online

git remote add origin https://github.com/ronaldaug/testing.git

git status ( ၸႅတ်ႈ )

git pull

git pull ( ၸၼ် )

git pull

git push ( သူင်ႇ )

git pull

git


(3) လၢႆး ႁဵတ်း branch မၼ်း

ၸၢမ်း branch မၼ်း တိုၵ်ႉတႅမ်ႈဝႆႉယူႇၼႂ်းလႂ်

git branch

ႁဵတ်း branch ဢၼ်မႂ်ႇ ၸိုဝ်ႈဝႃႈ "develop"

git checkout -b develop

ၶၢႆႉ branch မၼ်း

git checkout develop

(4) လၢႆး လေႃး branch မၼ်း

ဢဝ် develop မႃးလေႃၵၼ်တၢင်း main

တေလႆႈယူႇဝႆႉၼႂ်း main

git merge develop

ဢဝ် main မႃးလေႃၵၼ်တၢင်း develop

တေလႆႈယူႇဝႆႉၼႂ်း develop

git merge main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment