{"id":65396,"date":"2018-12-08T09:36:23","date_gmt":"2018-12-08T00:36:23","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=65396"},"modified":"2018-12-08T09:36:23","modified_gmt":"2018-12-08T00:36:23","slug":"git-aliases-for-lazy-developers","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/git-aliases-for-lazy-developers\/","title":{"rendered":"\u6020\u60f0\u306a\u958b\u767a\u8005\u306e\u305f\u3081\u306eGit\u30a8\u30a4\u30ea\u30a2\u30b9\u96c6"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/12\/pexels-photo-1440387.jpeg\" alt=\"Pexels photo 1440387\" title=\"pexels-photo-1440387.jpeg\" border=\"0\" width=\"1280\" height=\"853\" \/><\/p>\n<p>\u73fe\u5728\u4e16\u754c\u4e2d\u306e\u958b\u767a\u8005\u304b\u3089\u7d76\u5927\u306a\u4eba\u6c17\u3092\u96c6\u3081\u308b\u5206\u6563\u578b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u300cGit\u300d\u3002<\/p>\n<p>\u3082\u3068\u3082\u3068Linux\u30ab\u30fc\u30cd\u30eb\u958b\u767a\u306e\u305f\u3081\u306b\u751f\u307f\u51fa\u3055\u308c\u305f\u7d4c\u7def\u3092\u6301\u3061\u3001\u591a\u6a5f\u80fd\u306a\u53cd\u9762\u3001\u591a\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5b58\u5728\u3059\u308b\u8907\u96d1\u306a\u30c4\u30fc\u30eb\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u65e5\u7d39\u4ecb\u3059\u308b\u300c<a href=\"https:\/\/bitsofco.de\/git-aliases-for-lazy-developers\/\">Git aliases for lazy developers<\/a>\u300d\u3067\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u8907\u96d1\u306aGit\u3092\u5c11\u3057\u3067\u3082\u7c21\u5358\u306b\u4f7f\u3046\u305f\u3081\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u304c\u307e\u3068\u3081\u3066\u63b2\u8f09s\u3042\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u8005Ire Aderinokun\u6c0f\u304c\u63d0\u6848\u3059\u308b\u3082\u306e\u3067\u3001\u81ea\u5206\u81ea\u8eab\u304c\u6bce\u56de\u9577\u3044\u30b3\u30de\u30f3\u30c9\u3092\u7e70\u308a\u8fd4\u3057\u5165\u529b\u3059\u308b\u306e\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u9577\u5e74\u306b\u6e21\u3063\u3066\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067Git\u3092\u3059\u3070\u3084\u304f\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u77ed\u3044\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u4f5c\u6210\u3057\u3066\u304d\u305f\u3068\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u6020\u60f0\u306a\u958b\u767a\u8005\u306e\u305f\u3081\u306eGit\u30a8\u30a4\u30ea\u30a2\u30b9<\/h2>\n<p>\u4ee5\u4e0b\u306b\u7d39\u4ecb\u3059\u308b\u30a8\u30a4\u30ea\u30a2\u30b9\u306f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5b58\u5728\u3059\u308b.bash_profile\u3084.bashrc(bash\u306e\u5834\u5408)\u3001.zshrc(zsh\u306e\u5834\u5408)\u306a\u3069\u306b\u8ffd\u52a0\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30df\u30c3\u30c8<\/h3>\n<p>\u307e\u305a\u30b3\u30df\u30c3\u30c8\u6642\u306badd\u3068commit\u3092\u540c\u6642\u306b\u5b9f\u884c\u3067\u304d\u308b\u4ee5\u4e0b\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u304c\u63d0\u6848\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>alias gac=\"git add . && git commit -m\" # + commit message\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>gac \"My commit message\"\n<\/pre>\n<h3>\u521d\u671f\u5316<\/h3>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u521d\u671f\u5316\u3059\u308b\u5834\u5408\u306finit\u3068\u5148\u307b\u3069\u306egac\u3092\u7d44\u307f\u3042\u305b\u305f\u4ee5\u4e0b\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>alias gi=\"git init && gac 'Initial commit'\"\n<\/pre>\n<h3>Push\u3068Pull<\/h3>\n<p>push\u3068pull\u306e\u57fa\u672c\u7684\u306a\u30a8\u30a4\u30ea\u30a2\u30b9\u3067\u3059\u3002<\/p>\n<pre>alias gp=\"git push\" # + remote & branch names\nalias gl=\"git pull\" # + remote & branch names\n<\/pre>\n<p>\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre># Pushing\/pulling to origin remote\nalias gpo=\"git push origin\" # + branch name\nalias glo=\"git pull origin\" # + branch name\n\n# Pushing\/pulling to origin remote, master branch\nalias gpom=\"git push origin master\"\nalias glom=\"git pull origin master\"\n<\/pre>\n<h2>\u30d6\u30e9\u30f3\u30c1<\/h2>\n<p>\u30d6\u30e9\u30f3\u30c1\u64cd\u4f5c\u306b\u95a2\u3059\u308b\u30a8\u30a4\u30ea\u30a2\u30b9\u3082\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<pre>\nalias gb=\"git branch\" # + branch name\nalias gc=\"git checkout\" # + branch name\n\nalias gcb=\"git checkout -b\" # + branch name\n<\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u3053\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308bGit\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u306f\u3069\u308c\u3082\u304b\u306a\u308a\u30b7\u30f3\u30d7\u30eb\u3067\u30a2\u30ec\u30f3\u30b8\u3057\u3084\u3059\u3044\u3082\u306e\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u5168\u3066\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u306a\u304f\u3066\u3082\u4e00\u90e8\u3060\u3051\u53d6\u308a\u5165\u308c\u305f\u308a\u3001\u5206\u304b\u308a\u3084\u3059\u3044\u540d\u524d\u306b\u5909\u66f4\u3057\u3066\u4f7f\u7528\u3057\u305f\u308a\u3068\u81ea\u5206\u306a\u308a\u306e\u4f7f\u3044\u65b9\u3092\u6a21\u7d22\u3057\u3066\u307f\u308b\u3068\u3001Git\u64cd\u4f5c\u306e\u52b9\u7387\u30a2\u30c3\u30d7\u306b\u5f79\u7acb\u3061\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73fe\u5728\u4e16\u754c\u4e2d\u306e\u958b\u767a\u8005\u304b\u3089\u7d76\u5927\u306a\u4eba\u6c17\u3092\u96c6\u3081\u308b\u5206\u6563\u578b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u300cGit\u300d\u3002 \u3082\u3068\u3082\u3068Linux\u30ab\u30fc\u30cd\u30eb\u958b\u767a\u306e\u305f\u3081\u306b\u751f\u307f\u51fa\u3055\u308c\u305f\u7d4c\u7def\u3092\u6301\u3061\u3001\u591a\u6a5f\u80fd\u306a\u53cd\u9762\u3001\u591a\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5b58\u5728\u3059\u308b\u8907\u96d1\u306a\u30c4\u30fc\u30eb\u3068\u306a\u3063\u3066\u3044\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":65483,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66],"tags":[159],"class_list":["post-65396","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","tag-git"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/65396","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=65396"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/65396\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/65483"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=65396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=65396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=65396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}