{"id":11,"date":"2013-06-27T12:09:06","date_gmt":"2013-06-27T03:09:06","guid":{"rendered":"http:\/\/blog.ymyzk.com\/?p=11"},"modified":"2014-12-03T09:57:10","modified_gmt":"2014-12-03T00:57:10","slug":"git-alias","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2013\/06\/git-alias\/","title":{"rendered":"git alias\u3067\u5165\u529b\u91cf\u524a\u6e1b\u3068\u7f8e\u3057\u3044\u30ed\u30b0\u8868\u793a"},"content":{"rendered":"

git\u3092\u591a\u7528\u3057\u3066\u3044\u308b\u3068<\/p>\n

\r\n$ git status\r\n$ git checkout master\r\n<\/pre>\n

\u306a\u3069\u3068\u6253\u3064\u306e\u304c, \u3060\u3093\u3060\u3093\u9762\u5012\u306b\u306a\u3063\u3066\u304f\u308b. \u305d\u3053\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306balias\u3092\u8a2d\u5b9a\u3059\u308b\u3068<\/p>\n

\r\n$\u00a0git\u00a0config --global\u00a0alias.st\u00a0status\r\n$\u00a0git\u00a0config\u00a0--global\u00a0alias.cm\u00a0commit\r\n<\/pre>\n

\u3053\u306e\u3088\u3046\u306b\u5165\u529b\u91cf\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059!<\/p>\n

\r\n$ git st\r\n$ git co master\r\n<\/pre>\n

\u3055\u3089\u306b<\/p>\n

\r\n$ git config --global lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(blue)<%an>%Creset' --abbrev-commit --date=relative\r\n<\/pre>\n

\u3068\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3068, git lg\u3068\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7f8e\u3057\u3044\u30ed\u30b0\u51fa\u529b\u3092\u5f97\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059.<\/p>\n

\"git_lg\"<\/a><\/p>\n

alias\u306e\u8a2d\u5b9a\u306f~\/.gitconfig\u306b\u66f8\u3044\u3066\u304a\u3051\u308b\u306e\u3067, \u305d\u3061\u3089\u306e\u65b9\u304c\u697d\u304b\u3082\u3057\u308c\u307e\u305b\u3093.<\/p>\n

\u53c2\u8003\u307e\u3067\u306b\u4eca\u4f7f\u3063\u3066\u3044\u308b.gitconfig\u306fGitHub<\/a>\u3067\u516c\u958b\u3057\u3066\u3044\u307e\u3059.<\/p>\n","protected":false},"excerpt":{"rendered":"

git\u3092\u591a\u7528\u3057\u3066\u3044\u308b\u3068 $ git status $ git checkout master \u306a\u3069\u3068\u6253\u3064\u306e\u304c, \u3060\u3093\u3060\u3093\u9762\u5012\u306b\u306a\u3063\u3066\u304f\u308b. \u305d\u3053\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306balias\u3092\u8a2d\u5b9a\u3059\u308b\u3068 $\u00a0git\u00a0config –glob […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"_links":{"self":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/11"}],"collection":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":22,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":664,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/11\/revisions\/664"}],"wp:attachment":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}