diff --git a/docs/git-using.rar b/docs/git-using.rar new file mode 100644 index 0000000..7b15a67 Binary files /dev/null and b/docs/git-using.rar differ diff --git a/docs/git-using/01-git-using.md b/docs/git-using/01-git-using.md new file mode 100644 index 0000000..6167f22 --- /dev/null +++ b/docs/git-using/01-git-using.md @@ -0,0 +1,136 @@ +# USING FORK + +--- +### AMEND + +**BEFORE** + +You already push some file and want to add more to this commit. + +![Add Symbol Texture](./img/amend-1.png) + +Your local change + +![Add Symbol Texture](./img/amend-2.png) + +**AFTER** + +You can see all file local change will appear in your commit. + +![Add Symbol Texture](./img/amend-2.png) + +#### Step1: Stage all your local change + +![Add Symbol Texture](./img/amend-3.png) + +#### Step2: Check Amend & Click Amend Last Commit + +![Add Symbol Texture](./img/amend-4.png) + +--- +### REBASE + +**BEFORE** + +![Add Symbol Texture](./img/before.png) + +**AFTER** + +![Add Symbol Texture](./img/after.png) + +#### Step1: Amend or Commit all your local change. +#### Step2: Right click rebase where you want + +![Add Symbol Texture](./img/rebase-1.png) + +#### Step2: Click rebase + +![Add Symbol Texture](./img/rebase-2.png) +:::warning +If you missing step 1, this popup will appear. Back to step 1 and do it again. +![Add Symbol Texture](./img/rebase-3.png) +::: + +#### Step3: Finish. +:::warning +With no conflict, you can see the result like image After. + +If conflict, scroll down to check how to **RESOLVE CONFLICT** +::: +--- +### DROP COMMIT +In this case: I want to create **PullRequest** merge to **develop** but only commit **test2**. +My branch **feature/test2** must split from **develop** and only have one commit **test2**. + +**BEFORE** + +![Add Symbol Texture](./img/drop-1.png) + +**AFTER** + +![Add Symbol Texture](./img/drop-4.png) + +#### Step1: Amend or Commit all your local change. + +#### Step2: + +![Add Symbol Texture](./img/drop-2.png) + +#### Step3: + +![Add Symbol Texture](./img/drop-3.png) + +#### Step4: Click rebase. + + +--- +### CONFLICT RESOLVE + +:::warning +Any time in this step, if you see many problem and can't resolve conflict. +Click this button to exit what are you doing. And try another way. + +![Add Symbol Texture](./img/resolve-conflic-3.png) + +::: + + +When you meet this warning: + +![Add Symbol Texture](./img/resolve-conflic-1.png) + + + +Step1: Click **Local Change** +Step2: Select version you want +Step3: Click Choose +:::warning +If you have multi file conflict. All files will appear in *Unstaged** +You have to resolve all these files. +::: + +Step3: Click **Continue Rebase** + + +![Add Symbol Texture](./img/resolve-conflic-2.png) + + +--- +### PUSH FAIL + +![Add Symbol Texture](./img/push-fail-1.png) + +If you see this image, It's mean you already push it. + +![Add Symbol Texture](./img/push-fail-2.png) + +**2 ways to fix it ** + +**Rebase to old commit** and resolve conflict to keep all file in old version. + +![Add Symbol Texture](./img/push-fail-4.png) + +**Force Push** to remove old version branch in git & using this branch like newest. + +![Add Symbol Texture](./img/push-fail-3.png) + diff --git a/docs/git-using/02-tip-setup-spin-panel.md b/docs/git-using/02-tip-setup-spin-panel.md new file mode 100644 index 0000000..a95ed51 --- /dev/null +++ b/docs/git-using/02-tip-setup-spin-panel.md @@ -0,0 +1,13 @@ +# TIP SETUP SPIN PANEL + +Add reel-bg for each reel +Add reel-frame +Setting spacing: layout (reels-frame node) +Find size item: + +Heigh: average item size => 220. Set spin-panel + +Width: size reel-bg = 240 + setting spacing(20) = 260 + +landing-panel +present-win-cell-panel +present-win-border-panel +item-description \ No newline at end of file diff --git a/docs/git-using/03-test special-win.md b/docs/git-using/03-test special-win.md new file mode 100644 index 0000000..04d0823 --- /dev/null +++ b/docs/git-using/03-test special-win.md @@ -0,0 +1,7 @@ +# TIP TEST SPECIAL WIN + +You have to test a lot when working on localization. + +By this way, every time you spin will display all special-win. + +![Add Symbol Texture](./img/test-special-win.png) \ No newline at end of file diff --git a/docs/git-using/04-work-flow.md b/docs/git-using/04-work-flow.md new file mode 100644 index 0000000..46fa9bd --- /dev/null +++ b/docs/git-using/04-work-flow.md @@ -0,0 +1,33 @@ +# WORK FLOW + +## Team VN + +_Create Issue: include feature & bug + +_Prepare all assets for that feature & bug. + +_Update documentation. + +## Team Italy + +_Using gitea: drag issue from : ToDo -> In Progress -> Done (Git auto change to done) + +_Support teamVN feedback about documentation. + + +## GIT FLOW + +**Team Italy** after finish any feature or bug. +:::tip +Create PullRequest: Title format should be: `Close #{Issue ID}: {content}` (Following this format will help automate the closing of linked issues when the pull request is merged). +::: + +**Team VN** will try to review and merge as soon as possible. + + +:::tip +Sometimes **team VN** still not merge PullRequest and **team Italy** want to do next issue. +To avoid conflicts, recommend using prefabs for features and notifying team members whenever update the SCENE. + +Normally, if PullRequest1 is good and merge to develop. PullRequest2 will not conflict. +::: \ No newline at end of file diff --git a/docs/git-using/_category_.json b/docs/git-using/_category_.json new file mode 100644 index 0000000..621f697 --- /dev/null +++ b/docs/git-using/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "USING GIT", + "collapsible": true, + "collapsed": false, + "link": { + "title": "USING GIT" + } +} \ No newline at end of file diff --git a/docs/git-using/image.png b/docs/git-using/image.png new file mode 100644 index 0000000..c626a6b Binary files /dev/null and b/docs/git-using/image.png differ diff --git a/docs/git-using/img/after.png b/docs/git-using/img/after.png new file mode 100644 index 0000000..7b06911 Binary files /dev/null and b/docs/git-using/img/after.png differ diff --git a/docs/git-using/img/amend-1.png b/docs/git-using/img/amend-1.png new file mode 100644 index 0000000..9b90768 Binary files /dev/null and b/docs/git-using/img/amend-1.png differ diff --git a/docs/git-using/img/amend-2.png b/docs/git-using/img/amend-2.png new file mode 100644 index 0000000..e21b906 Binary files /dev/null and b/docs/git-using/img/amend-2.png differ diff --git a/docs/git-using/img/amend-3.png b/docs/git-using/img/amend-3.png new file mode 100644 index 0000000..5b59228 Binary files /dev/null and b/docs/git-using/img/amend-3.png differ diff --git a/docs/git-using/img/amend-4.png b/docs/git-using/img/amend-4.png new file mode 100644 index 0000000..ea9988b Binary files /dev/null and b/docs/git-using/img/amend-4.png differ diff --git a/docs/git-using/img/amend-5.png b/docs/git-using/img/amend-5.png new file mode 100644 index 0000000..8077c54 Binary files /dev/null and b/docs/git-using/img/amend-5.png differ diff --git a/docs/git-using/img/before.png b/docs/git-using/img/before.png new file mode 100644 index 0000000..e32bb53 Binary files /dev/null and b/docs/git-using/img/before.png differ diff --git a/docs/git-using/img/drop-1.png b/docs/git-using/img/drop-1.png new file mode 100644 index 0000000..c296288 Binary files /dev/null and b/docs/git-using/img/drop-1.png differ diff --git a/docs/git-using/img/drop-2.png b/docs/git-using/img/drop-2.png new file mode 100644 index 0000000..e40b62a Binary files /dev/null and b/docs/git-using/img/drop-2.png differ diff --git a/docs/git-using/img/drop-3.png b/docs/git-using/img/drop-3.png new file mode 100644 index 0000000..1d31ef3 Binary files /dev/null and b/docs/git-using/img/drop-3.png differ diff --git a/docs/git-using/img/drop-4.png b/docs/git-using/img/drop-4.png new file mode 100644 index 0000000..43e30c1 Binary files /dev/null and b/docs/git-using/img/drop-4.png differ diff --git a/docs/git-using/img/push-fail-1.png b/docs/git-using/img/push-fail-1.png new file mode 100644 index 0000000..883580a Binary files /dev/null and b/docs/git-using/img/push-fail-1.png differ diff --git a/docs/git-using/img/push-fail-2.png b/docs/git-using/img/push-fail-2.png new file mode 100644 index 0000000..aa824a0 Binary files /dev/null and b/docs/git-using/img/push-fail-2.png differ diff --git a/docs/git-using/img/push-fail-3.png b/docs/git-using/img/push-fail-3.png new file mode 100644 index 0000000..71e76d1 Binary files /dev/null and b/docs/git-using/img/push-fail-3.png differ diff --git a/docs/git-using/img/push-fail-4.png b/docs/git-using/img/push-fail-4.png new file mode 100644 index 0000000..3f1aea6 Binary files /dev/null and b/docs/git-using/img/push-fail-4.png differ diff --git a/docs/git-using/img/rebase-1.png b/docs/git-using/img/rebase-1.png new file mode 100644 index 0000000..1e63335 Binary files /dev/null and b/docs/git-using/img/rebase-1.png differ diff --git a/docs/git-using/img/rebase-2.png b/docs/git-using/img/rebase-2.png new file mode 100644 index 0000000..4092249 Binary files /dev/null and b/docs/git-using/img/rebase-2.png differ diff --git a/docs/git-using/img/rebase-3.png b/docs/git-using/img/rebase-3.png new file mode 100644 index 0000000..4406a28 Binary files /dev/null and b/docs/git-using/img/rebase-3.png differ diff --git a/docs/git-using/img/resolve-conflic-1.png b/docs/git-using/img/resolve-conflic-1.png new file mode 100644 index 0000000..1782024 Binary files /dev/null and b/docs/git-using/img/resolve-conflic-1.png differ diff --git a/docs/git-using/img/resolve-conflic-2.png b/docs/git-using/img/resolve-conflic-2.png new file mode 100644 index 0000000..56e395e Binary files /dev/null and b/docs/git-using/img/resolve-conflic-2.png differ diff --git a/docs/git-using/img/resolve-conflic-3.png b/docs/git-using/img/resolve-conflic-3.png new file mode 100644 index 0000000..d89a67b Binary files /dev/null and b/docs/git-using/img/resolve-conflic-3.png differ diff --git a/docs/git-using/img/test-special-win.png b/docs/git-using/img/test-special-win.png new file mode 100644 index 0000000..817aa25 Binary files /dev/null and b/docs/git-using/img/test-special-win.png differ diff --git a/docs/git-using/test.md b/docs/git-using/test.md new file mode 100644 index 0000000..63eb27a --- /dev/null +++ b/docs/git-using/test.md @@ -0,0 +1,19 @@ +# MD + + + +| Step | Action | image | +|------|---------|--------------| +| 1. Locate Prefab | Search for `ui-bottom-bar-panel` prefab | ![Locate Prefabs](./img/push-fail-3.png) | +| 2. Find Assets | Navigate to `core/editor` directory | ![Copy UI Folder](./img/push-fail-3.png) | +| 3. Clone Assets | Copy / Paste to game assets location | ![Asset Placement](./img/push-fail-3.png) | + + + +![Add Symbol Texture](./img/rebase-2.png) + + +:::warning +If you missing step 1, this popup will appear. Back to step 1 and do it again. +![Add Symbol Texture](./img/rebase-3.png) +::: \ No newline at end of file