git : create patch and review

◾️ create patch (ex : create patch recent two commits)

$ git log
commit 4ca0cc176f7caf84390166aebe86ec5bf20fa126 (HEAD -> develop)
Author: cit007
Date:   Wed Dec 16 22:46:35 2020 +0900

    reset default margin of body and fix some padding or margin for nice look

commit 0ab062460e40b4dcc8e4a0a36ba466de5ac473de
Author: cit007
Date:   Wed Dec 16 17:20:29 2020 +0900

    refactoring and delete logs

commit ac17508b3e0bf7d7351abc161f03ea72cfb6d3b3
Author: cit007
Date:   Wed Dec 16 15:10:48 2020 +0900

    bugfix : default pay amount is 10 and selecting amount affect other pay logic because sharing state. so, we need to init amount state when clicking donate and close button. show notice when use click pay button without selecting the radio-button for pay

commit ef26f913ca7952d0696b7258c01d6870ac3f7640
Author: cit007
Date:   Wed Dec 16 14:34:38 2020 +0900

    animate : each charity poster and button with transition effect

$ git format-patch ac17508b3e0bf7d7351abc161f03ea72cfb6d3b3
0001-refactoring-and-delete-logs.patch
0002-reset-default-margin-of-body-and-fix-some-padding-or.patch

◾️ apply patch (sometimes, git am –abort for patch)

$ git checkout -b review-branch
Switched to a new branch 'review-branch'

$ cat *.patch | git am
fatal: previous rebase directory .git/rebase-apply still exists but mbox given.

$ git am --abort

$ cat *.patch | git am
Applying: refactoring and delete logs
Applying: reset default margin of body and fix some padding or margin for nice look

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です