CLASSFUNC BLOG

We Share Our Knowledge
Site Search

Git log đẹp

Lê Thành ✍︎︎ 25-08-2020

Log short commit id và commit message

git log commitId^..HEAD --pretty=oneline --abbrev-commit

VD: git log --pretty=oneline --abbrev-commit d8324e3d6957b52e9b7529b18725ad076d1a8628^..HEAD

3867c76 (HEAD -> master) check hacker
7e72cfd (origin/master, origin/HEAD) hosting no cache source /
8f06d01 order post by updated_at
2a01a5f build lâu hơn ;))

Chỉ log commit message

git log commitId^..HEAD --pretty=format:%s

VD: git log d8324e3d6957b52e9b7529b18725ad076d1a8628^..HEAD --pretty=format:%s

check hacker
hosting no cache source /
order post by updated_at
build lâu hơn ;))

Hiển thị detail commit hash

git show commitId

VD: git show fb1363a82695d7d02ea2aaf7339427d82dcc0ba8

commit fb1363a82695d7d02ea2aaf7339427d82dcc0ba8
Author: lvt <thanh@classfunc.com>
Date:   Mon Aug 24 16:01:34 2020 +0700

    close on next

diff --git a/src/components/MenuMapsBar/DialogGuideComponent.js b/src/components/MenuMapsBar/DialogGuideComponent.js
index 2107226..ad34e96 100644
--- a/src/components/MenuMapsBar/DialogGuideComponent.js
+++ b/src/components/MenuMapsBar/DialogGuideComponent.js
@@ -216,7 +216,7 @@ function DialogGuideComponent(props) {
                             className={classes.btnConflict}
                             endIcon={<PlayArrowIcon/>}
                             style={{background: value.color}}
-                            onClick={handleSave}
+                            onClick={onClose}
                         >
                             入力開始
                         </Button>