{"id":948,"date":"2018-02-09T12:50:36","date_gmt":"2018-02-09T03:50:36","guid":{"rendered":"https:\/\/clouds.tokyo\/blog\/?p=948"},"modified":"2018-02-09T12:53:52","modified_gmt":"2018-02-09T03:53:52","slug":"git_branch","status":"publish","type":"post","link":"https:\/\/clouds.tokyo\/blog\/git_branch\/","title":{"rendered":"\u3010git\u3011\u30d6\u30e9\u30f3\u30c1\u306bcommit\u3001push\u3059\u308b"},"content":{"rendered":"<p>git\u3067\u30d6\u30e9\u30f3\u30c1\u306bcommit\u3001push\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u306fclone\u3067\u53d6\u5f97\u3057\u305f\u60c5\u5831\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre>\r\ngit branch -r\r\n<\/pre>\n<p>\u30d6\u30e9\u30f3\u30c1\u306b\u306f\u30ea\u30e2\u30fc\u30c8\u3068\u30ed\u30fc\u30ab\u30eb\u304c\u3042\u308a\u307e\u3059\u306e\u3067-r\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30ea\u30e2\u30fc\u30c8\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\norigin\/test1\r\norigin\/test2\r\norigin\/ver235\r\norigin\/ver236\r\norigin\/ver236_test\r\norigin\/ver237\r\n<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30d6\u30e9\u30f3\u30c1\u306e\u30ea\u30b9\u30c8\u304c\u51fa\u307e\u3059\u3002<br \/>\nclone\u3057\u305f\u5f8c\u306b\u4f5c\u3089\u308c\u305f\u30d6\u30e9\u30f3\u30c1\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u306e\u3067<br \/>\n\u6700\u65b0\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u30ea\u30b9\u30c8\u3092\u898b\u308b\u306b\u306f\u518d\u5ea6clone\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u76ee\u7684\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u898b\u3064\u3051\u305f\u3089\u3001<br \/>\n\u30d6\u30e9\u30f3\u30c1\u3092\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\uff08\u30ea\u30e2\u30fc\u30c8\u4e0a\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u843d\u3068\u3057\u3066\u304d\u3066\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\uff09\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\ngit checkout -b (\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30f3\u30c1\u540d) (\u30ea\u30e2\u30fc\u30c8\u306e\u30d6\u30e9\u30f3\u30c1\u540d)\r\n<\/pre>\n<p>\u305f\u3068\u3048\u3070ver237\u3068\u3044\u3046\u30ea\u30e2\u30fc\u30c8\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u843d\u3068\u3057\u305f\u3044\u5834\u5408\u306f<\/p>\n<pre>\r\ngit checkout -b ver237 origin\/ver237\r\n<\/pre>\n<p>\u3053\u308c\u3067ver237\u3068\u3044\u3046\u30d6\u30e9\u30f3\u30c1\u304c\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u30b3\u30df\u30c3\u30c8\u5bfe\u8c61\u304c\u30d6\u30e9\u30f3\u30c1\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre>\r\ngit branch\r\n<\/pre>\n<p>-r\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u306a\u3051\u308c\u3070\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30f3\u30c1\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>\r\n  master\r\n* ver237\r\n<\/pre>\n<p>\uff0a\u304c\u3064\u3044\u3066\u3044\u308b\u884c\u304c\u73fe\u5728\u306e\u30b3\u30df\u30c3\u30c8\u5bfe\u8c61\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001<br \/>\n\u30d6\u30e9\u30f3\u30c1\u300cver237\u300d\u304c\u30b3\u30df\u30c3\u30c8\u5bfe\u8c61\u3067\u3059\u3002<br \/>\n\u3053\u306e\u72b6\u614b\u3067commit\u3084push\u3092\u884c\u3048\u3070<br \/>\n\u3053\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git\u3067\u30d6\u30e9\u30f3\u30c1\u306bcommit\u3001push\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u307e\u305a\u306fclone\u3067\u53d6\u5f97\u3057\u305f\u60c5\u5831\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u306e\u4e00\u89a7\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u3002 git branch -r \u30d6\u30e9\u30f3\u30c1\u306b\u306f\u30ea\u30e2\u30fc\u30c8\u3068\u30ed\u30fc\u30ab\u30eb\u304c\u3042\u308a\u307e\u3059\u306e\u3067-r\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30ea\u30e2\u30fc\u30c8 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/clouds.tokyo\/blog\/git_branch\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010git\u3011\u30d6\u30e9\u30f3\u30c1\u306bcommit\u3001push\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":""},"categories":[2],"tags":[385,386,387],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pezW3u-fi","jetpack-related-posts":[{"id":1615,"url":"https:\/\/clouds.tokyo\/blog\/heic-jpeg\/","url_meta":{"origin":948,"position":0},"title":"\u3010HEIC\u3011Linux\u3067HEIC\u30d5\u30a1\u30a4\u30eb\u3092JPEG\u306b\u5909\u63db\u3059\u308b","author":"yamamoto","date":"2023\u5e7410\u670812\u65e5","format":false,"excerpt":"WEB\u30b7\u30b9\u30c6\u30e0\u3067\u3001\u30b9\u30de\u30db\u304b\u3089\u5199\u771f\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u3082\u3089\u3046\u6a5f\u80fd\u3092\u4f5c\u308b\u5834\u5408\u3001 JPEG\u3060\u3051\u3067\u306f\u306a\u304f\u3001iP\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":759,"url":"https:\/\/clouds.tokyo\/blog\/linux_lets_cent5\/","url_meta":{"origin":948,"position":1},"title":"\u3010Linux\u3011CentOS5\u3067Let&#8217;s Encrypt\u3092\u4f7f\u3063\u3066\u30de\u30eb\u30c1\u30c9\u30e1\u30a4\u30f3\u306eSSL\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b","author":"yamamoto","date":"2017\u5e746\u670821\u65e5","format":false,"excerpt":"CentOS5\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u30022010\u5e74\u306b\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002 \u65b0\u3057\u3044OS\u306b\u4e57\u308a\u63db\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":578,"url":"https:\/\/clouds.tokyo\/blog\/linux_git_centos5\/","url_meta":{"origin":948,"position":2},"title":"\u3010Linux\u3011CentOS5\u306bgit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b","author":"yamamoto","date":"2012\u5e742\u67089\u65e5","format":false,"excerpt":"\u305d\u306e\u307e\u307e\u3060\u3068 yum install git \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3082 No package g\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":537,"url":"https:\/\/clouds.tokyo\/blog\/ajax_xdomain\/","url_meta":{"origin":948,"position":3},"title":"\u3010Ajax\u3011\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u3067\u975e\u540c\u671f\u901a\u4fe1\u3092\u884c\u3046","author":"yamamoto","date":"2013\u5e747\u670827\u65e5","format":false,"excerpt":"\u30af\u30ed\u30b9\u30c9\u30e1\u30a4\u30f3\u3067\u975e\u540c\u671f\u901a\u4fe1\u3092\u884c\u3046\u65b9\u6cd5\u306e\u4e00\u3064\u306b\u3001 \u300cAccess-Control-Allow-Orig\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":714,"url":"https:\/\/clouds.tokyo\/blog\/ajax_cors\/","url_meta":{"origin":948,"position":4},"title":"\u3010Ajax\u3011\u901a\u4fe1\u30e1\u30bd\u30c3\u30c9\u304c\u52dd\u624b\u306bOPTIONS\u306b\u306a\u3063\u305f\u3089","author":"yamamoto","date":"2017\u5e745\u67082\u65e5","format":false,"excerpt":"\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6761\u4ef6\u3067Ajax\u901a\u4fe1\u3092\u884c\u3046\u3068\u3001\u30d6\u30e9\u30a6\u30b6\u306f\u81ea\u52d5\u7684\u306b\u300c\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u300d\u3068\u547c\u3070\u308c\u308b\u901a\u4fe1\u30c1\u30a7\u30c3\u30af\u3092\u884c\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":205,"url":"https:\/\/clouds.tokyo\/blog\/php_log_origin\/","url_meta":{"origin":948,"position":5},"title":"\u3010PHP\u3011\u72ec\u81ea\u306e\u30ed\u30b0\u3092\u51fa\u529b\u3057\u3088\u3046","author":"yamamoto","date":"2015\u5e746\u67088\u65e5","format":false,"excerpt":"\u958b\u767a\u306b\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u306f\u6b20\u304b\u305b\u307e\u305b\u3093\u304c\u3001 \u6a19\u6e96\u30ed\u30b0\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u30ed\u30b0\u3060\u3051\u3067\u306f\u60c5\u5831\u304c\u4e0d\u8db3\u3057\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/948"}],"collection":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/comments?post=948"}],"version-history":[{"count":3,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/948\/revisions"}],"predecessor-version":[{"id":951,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/948\/revisions\/951"}],"wp:attachment":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/media?parent=948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/categories?post=948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/tags?post=948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}