{"id":27722,"date":"2015-02-18T00:27:32","date_gmt":"2015-02-17T15:27:32","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=27722"},"modified":"2015-02-18T00:27:32","modified_gmt":"2015-02-17T15:27:32","slug":"git-stats","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/git-stats\/","title":{"rendered":"git-stats - GitHub\u98a8\u306eContributions calendar\u3092\u30ed\u30fc\u30ab\u30eb\u3067\u3082\u8868\u793a\u3057\u3066\u697d\u3057\u304f\u958b\u767a"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/02\/INewImage85.png\" alt=\"NewImage\" title=\"NewImage.png\" border=\"0\" width=\"546\" height=\"403\" \/><\/p>\n<p>GitHub\u306b\u306f\u3001\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30da\u30fc\u30b8\u306b\u30b3\u30df\u30c3\u30c8\u6570\u306a\u3069\u3092\u30ab\u30ec\u30f3\u30c0\u30fc\u98a8\u306b\u8868\u793a\u3059\u308b\u300c<a href=\"https:\/\/help.github.com\/articles\/viewing-contributions-on-your-profile-page\/\">Contributions calendar<\/a>\u300d\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u300c<a href=\"https:\/\/github.com\/IonicaBizau\/git-stats\">git-stats<\/a>\u300d\u306f\u3001\u3053\u306e\u6a5f\u80fd\u3092\u30ed\u30fc\u30ab\u30eb\u306egit\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u5b9f\u73fe\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002git hooks\u3084\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b3\u30de\u30f3\u30c9\u7f6e\u304d\u63db\u3048\u3092\u4f7f\u3063\u3066\u3001\u30b3\u30df\u30c3\u30c8\u6570\u3092\u8a18\u9332\u3057\u3066\u3044\u304d\u3001\u300cgit-stats\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4e0a\u8a18\u753b\u50cf\u306e\u3088\u3046\u306a\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u666e\u6bb5Git\u306e\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u3063\u3066\u3044\u3066\u3001GitHub\u306e\u30ab\u30e9\u30d5\u30eb\u306a\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u7fa8\u307e\u3057\u304f\u601d\u3063\u3066\u3044\u305f\u4eba\u3082\u3053\u308c\u3055\u3048\u3042\u308c\u3070\u3082\u3046\u5bc2\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Node Package Manager\u300cnpm\u300d\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre>\n$ npm install -g git-stats\n<\/pre>\n<h2>git commit\u3067\u81ea\u52d5\u7684\u306b\u30c7\u30fc\u30bf\u3092\u8a18\u9332\u3059\u308b<\/h2>\n<p>git-stats\u306f\u72ec\u81ea\u306b\u4fdd\u5b58\u3057\u305fcommit\u30c7\u30fc\u30bf\u4f7f\u3063\u3066\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u8868\u793a\u3059\u308b\u306e\u3067\u3001git hooks\u304b\u3001\u30b3\u30de\u30f3\u30c9\u306e\u7f6e\u304d\u63db\u3048\u3092\u884c\u3063\u3066\u81ea\u52d5\u7684\u306bcommit\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>git hooks\u3092\u4f7f\u3063\u3066\u3001commit\u3092\u8a18\u9332\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c8\u3099\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\ncurl -s https:\/\/raw.githubusercontent.com\/IonicaBizau\/git-stats\/master\/scripts\/init-git-post-commit | bash\n<\/pre>\n<p>\u3053\u308c\u306fcommit\u5f8c\u306b\u300cgit-stats --record\u300d\u3092\u5b9f\u884c\u3057\u3001\u30b3\u30df\u30c3\u30c8\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8hooks\u306b\u3057\u304b\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u4ee5\u5916\u306bgit\u30b3\u30de\u30f3\u30c9\u3092bash\u95a2\u6570\u3067\u7f6e\u304d\u63db\u3048\u308b\u65b9\u6cd5\u3082\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u3061\u3089\u306e\u65b9\u6cd5\u3092\u4f7f\u3044\u305f\u3044\u65b9\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>git-stats\u306e\u4f7f\u7528\u65b9\u6cd5<\/h2>\n<p>git\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001git-stats\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\n$ git-stats\n$ git-stats --light # Light\u30e2\u30fc\u30c9\n$ git-stats '1 January 2012' # 2012\u5e741\u67081\u65e5\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3002\n<\/pre>\n<h2>\u624b\u3063\u53d6\u308a\u65e9\u304f\u8868\u793a\u3059\u308b git-stats-importer<\/h2>\n<p>\u305f\u3060\u3053\u306e\u6bb5\u968e\u3067\u306f\u65e2\u5b58\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002commit\u30c7\u30fc\u30bf\u304c\u8a18\u9332\u3055\u308c\u308b\u306e\u306f\u300c\u3053\u308c\u304b\u3089\u300d\u8d77\u3053\u308b\u672a\u6765\u306e\u8a71\u3060\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u89aa\u5207\u306a\u3053\u3068\u306b\u3001\u65e2\u5b58\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u3080\u305f\u3081\u306e\u5c02\u7528\u30c4\u30fc\u30eb\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre>\n# \u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ npm install -g git-stats-importer\n\n# \u81ea\u5206\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u79fb\u52d5\n$ cd path\/to\/my-repository\n\n# commits\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3002\n$ git-stats-importer\n<\/pre>\n<p>\u4ee5\u4e0b\u8a66\u3057\u306b\u81ea\u5206\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/02\/Izsh.jpg\" alt=\"Zsh\" title=\"zsh.jpg\" border=\"0\" width=\"546\" height=\"141\" \/><\/p>\n<p>\u304b\u306a\u308a\u5bc2\u3057\u3044\u30ab\u30ec\u30f3\u30c0\u30fc\u3067\u3059\u304c\u3001\u304d\u3061\u3093\u3068\u8868\u793a\u3067\u304d\u307e\u3057\u305f\uff01\u306a\u305c\u304biTerm2\u3067\u306f\u8868\u793a\u304c\u305a\u308c\u305f\u306e\u3067\u6a19\u6e96Terminal\u3067\u8868\u793a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>GitHub\u306f\u3001git\u3092\u5358\u4f53\u3067\u4f7f\u3046\u4ee5\u4e0a\u306e\u697d\u3057\u3044\u6a5f\u80fd\u304c\u63d0\u4f9b\u3055\u308c\u308b\u306e\u304c\u4eba\u6c17\u306e\u8981\u56e0\u3067\u3082\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u4e8b\u60c5\u306b\u3088\u308a\u3001\u3069\u3046\u3057\u3066\u3082GitHub\u304c\u4f7f\u3048\u306a\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u643a\u308f\u3063\u3066\u3044\u308b\u65b9\u3082\u3044\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u3046\u3044\u3046\u3068\u304d\u81ea\u5206\u306e\u50cd\u304d\u3076\u308a\u3092\u53ef\u8996\u5316\u3067\u304d\u308bgit-stats\u3092\u4f7f\u3046\u306e\u306f\u30a2\u30ea\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub\u306b\u306f\u3001\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30da\u30fc\u30b8\u306b\u30b3\u30df\u30c3\u30c8\u6570\u306a\u3069\u3092\u30ab\u30ec\u30f3\u30c0\u30fc\u98a8\u306b\u8868\u793a\u3059\u308b\u300cContributions calendar\u300d\u3068\u547c\u3070\u308c\u308b\u6a5f\u80fd\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u4eca\u56de\u7d39\u4ecb\u3059\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u300cgit-stats\u300d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":27720,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[159,573],"class_list":["post-27722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-git","tag-github"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/27722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=27722"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/27722\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/27720"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=27722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=27722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=27722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}