Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
1. git log로 로그 이력을 확인한다.
commit 7b5082776d45984122864a0f5362edc5fd29c744
Author: goopers <mart@paran.com>
Date: Mon Nov 21 18:04:34 2016 +0900
test
commit a4d3d0fa07001bb50cab12ff7f58c5f0549a3570
Author: goopers <mart@paran.com>
Date: Mon Nov 21 17:57:01 2016 +0900
Init
gooper@gooper-PC MINGW64 /c/dev/workspace/test (master)
2. 특정 커밋시점으로 reset한다.(예, id: a4d3d0fa07001bb50cab12ff7f58c5f0549a3570)
$ git reset --hard a4d3d0fa07001bb50cab12ff7f58c5f0549a3570
HEAD is now at a4d3d0f Init
gooper@gooper-PC MINGW64 /c/dev/workspace/test (master)
3. github에 반영한다.
$ git push -f origin master
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/goopers/gooper_repo.git
+ 7b50827...a4d3d0f master -> master (forced update)
gooper@gooper-PC MINGW64 /c/dev/workspace/test (master)
$