{"id":37940,"date":"2016-05-01T00:43:28","date_gmt":"2016-04-30T15:43:28","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=37940"},"modified":"2016-05-01T00:43:28","modified_gmt":"2016-04-30T15:43:28","slug":"human-git-aliases","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/human-git-aliases\/","title":{"rendered":"Git\u3092\u4eba\u9593\u3089\u3057\u304f\u4f7f\u3046\u30a8\u30a4\u30ea\u30a2\u30b9\u96c6\u300cHuman Git Aliases\u300d"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2016\/05\/Icommand.png\" alt=\"Command\" title=\"command.png\" border=\"0\" width=\"640\" height=\"554\" \/><\/p>\n<p>\u5206\u6563\u578b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u300cGit\u300d\u3002Linux\u30ab\u30fc\u30cd\u30eb\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u958b\u767a\u3055\u308c\u305f\u3060\u3051\u3042\u3063\u3066\u51fa\u6765\u306a\u3044\u3053\u3068\u306f\u306a\u3044\u3068\u3044\u3046\u307b\u3069\u591a\u6a5f\u80fd\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u53cd\u9762\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u8907\u96d1\u3067\u4f7f\u3044\u3053\u306a\u3059\u306e\u306b\u30b9\u30ad\u30eb\u304c\u5fc5\u8981\u3067\u3042\u308b\u3068\u3044\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u53c2\u8003\u306b\u3057\u305f\u3044\u306e\u304c\u8907\u96d1\u306aGit\u3092\u4eba\u9593\u3089\u3057\u304f\u81ea\u7136\u306b\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u4fbf\u5229\u306a\u30a8\u30ea\u30a2\u30b9\u96c6\u300c<a href=\"http:\/\/gggritso.com\/human-git-aliases\">Human Git Aliases<\/a>\u300d\u3067\u3059\u3002<\/p>\n<p>\u30ab\u30ca\u30c0\u306e\u958b\u767a\u8005George Gritsouk\u6c0f\u306b\u3088\u3063\u3066\u8003\u6848\u3055\u308c\u305f\u3082\u306e\u3067\u300cci = commit\u300d\u5f0f\u306b\u30bf\u30a4\u30d7\u6570\u306e\u524a\u6e1b\u3092\u76ee\u7684\u3068\u3057\u305f\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u672c\u5f53\u306e\u8a00\u8449\u3092\u4f7f\u3044\u3001Git\u3092\u3088\u308a\u4eba\u9593\u3089\u3057\u304f\u6271\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3068\u3057\u3066\u4f4d\u7f6e\u3065\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Human Git Aliases\u306f.gitconfig\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u30ea\u30b9\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8907\u6570\u5f62\u3092\u5229\u7528\u3057\u3066\u7d71\u4e00\u7684\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\nbranches = branch -a\ntags = tag\nstashes = stash list\n<\/pre>\n<p>\u307e\u305f\u64cd\u4f5c\u3092\u623b\u3059\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u3082\u5206\u304b\u308a\u3084\u3059\u3044\u8a00\u8449\u3067\u8a00\u3044\u63db\u3048\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\nunstage = reset -q HEAD --\ndiscard = checkout --\nuncommit = reset --mixed HEAD~\namend = commit --amend\n<\/pre>\n<p>\u64cd\u4f5c\u3092\u5b8c\u5168\u306b\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u30a8\u30a4\u30ea\u30a2\u30b9\u3082\u5b58\u5728\u3057\u307e\u3059(!\u3067\u59cb\u307e\u308b\u30b3\u30de\u30f3\u30c9\u306f\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059)\u3002<\/p>\n<pre>\nnevermind = !git reset --hard HEAD && git clean -d -f\n<\/pre>\n<p>\u307e\u305f\u3060\u308c\u304c\u3044\u3064\u3069\u306e\u3088\u3046\u306a\u5909\u66f4\u3092\u884c\u3063\u305f\u304b\u3092\u78ba\u8a8d\u3059\u308b\"graph\"\u3084\u3001<\/p>\n<pre>\ngraph = log --graph -10 --branches --remotes --tags  --format=format:'%Cgreen%h %Creset\u2022 %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order\n<\/pre>\n<p>commit\u524d\u306b\u5909\u66f4\u70b9\u3092\u78ba\u8a8d\u3059\u308b\"precommit\"\u7b49\u4fbf\u5229\u306a\u30a8\u30a4\u30ea\u30a2\u30b9\u304c\u305d\u308d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\nprecommit = diff --cached --diff-algorithm=minimal -w\n<\/pre>\n<p>\u30a8\u30a4\u30ea\u30a2\u30b9\u306e\u5b8c\u5168\u306a\u30ea\u30b9\u30c8\u306f<a href=\"https:\/\/github.com\/gggritso\/dotfiles\/blob\/master\/gitconfig.symlink\">GitHub<\/a>\u306b\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002Git\u3092\u4f7f\u3063\u3066\u3044\u308b\u958b\u767a\u8005\u306f\u53c2\u8003\u306b\u306a\u308b\u90e8\u5206\u304c\u591a\u3044\u60c5\u5831\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u6563\u578b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u300cGit\u300d\u3002Linux\u30ab\u30fc\u30cd\u30eb\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u958b\u767a\u3055\u308c\u305f\u3060\u3051\u3042\u3063\u3066\u51fa\u6765\u306a\u3044\u3053\u3068\u306f\u306a\u3044\u3068\u3044\u3046\u307b\u3069\u591a\u6a5f\u80fd\u306a\u30c4\u30fc\u30eb\u3067\u3059\u304c\u3001\u53cd\u9762\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u8907\u96d1\u3067\u4f7f\u3044\u3053\u306a\u3059\u306e\u306b\u30b9\u30ad\u30eb\u304c\u5fc5\u8981\u3067\u3042\u308b\u3068\u3044\u308f\u308c\u3066 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":37939,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[159],"class_list":["post-37940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-git"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/37940","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=37940"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/37940\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/37939"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=37940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=37940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=37940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}