{"id":2808,"date":"2024-08-03T10:59:55","date_gmt":"2024-08-03T01:59:55","guid":{"rendered":"https:\/\/wp.kaz.bz\/tech\/?p=2808"},"modified":"2024-08-03T11:05:16","modified_gmt":"2024-08-03T02:05:16","slug":"git-%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa-%ef%bc%88-remote-origin-%ef%bc%89-%e3%81%ae%e7%a7%bb%e8%a8%ad%e6%96%b9%e6%b3%95%e3%80%82","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2024\/08\/03\/2808.html","title":{"rendered":"git \u30ea\u30dd\u30b8\u30c8\u30ea \uff08 remote origin \uff09 \u306e\u79fb\u8a2d\u65b9\u6cd5\u3002"},"content":{"rendered":"<p>\u6700\u8fd1 git \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u79fb\u52d5\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u304c\u307d\u308d\u307d\u308d\u3042\u308b\u306e\u3067\u3001\u30e1\u30e2\u3002<\/p>\n<h3>\u624b\u9806\u6982\u8981<\/h3>\n<ol>\n<li>\u73fe\u5728\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u81ea\u4f53\u3092 clone \u3059\u308b<\/li>\n<li>\u65b0\u3057\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u306a\u308b\u5148\u3092\u4f5c\u6210\uff08\u7a7a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\uff09<\/li>\n<li>1.\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e origin \uff08 push \u5148\uff09\u3092 2. \u306b\u5909\u66f4<\/li>\n<li>push<\/li>\n<\/ol>\n<h3>\u7d50\u5c40\u3084\u308b\u3053\u3068<\/h3>\n<p>\u73fe\u5728\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304c [repo] \u3060\u3068\u3059\u308b\u3002<br \/>\n\u4e8b\u524d\u306b\u3042\u3052\u308b\u5148\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u3057\u3066\uff08\u4eee\u306b [repo_new] \uff09\u3002<\/p>\n<ol>\n<li><code>git clone --mirror [repo]<\/code><\/li>\n<li>clone \u3057\u3066\u304d\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5165\u3063\u3066 <code>git remote set-url origin [repo_new]<\/code><\/li>\n<li><code>git push --mirror<\/code>\n<ol>\n<li>\u3092\u3084\u308b\u3053\u3068\u3067\u3001\u901a\u5e38\u306e clone \u3067\u306f\u306a\u304f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u72b6\u614b\uff08 \u30ed\u30fc\u30ab\u30eb\u3067 <code>git init --bare<\/code> \u3067\u4f5c\u3063\u305f\u3088\u3046\u306a\u3084\u3064\uff09\u3092\u6301\u3063\u3066\u304f\u308b\u3002<br \/>\n\u305d\u3053\u306b\u66f8\u304b\u308c\u3066\u3044\u308b origin \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u65b0\u3057\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u66f8\u304d\u63db\u3048\u3066\u3001push \uff08\u3053\u308c\u3082\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u72b6\u614b\u3067\uff09\u3059\u308b\u3053\u3068\u3067\u3001\u79fb\u8a2d\u3067\u304d\u308b\u3002<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<blockquote><p>\n  \u5358\u7d14\u306a\u72b6\u614b\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u306e\u57fa\u672c\u64cd\u4f5c\u3092\u60f3\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u72b6\u614b\u306b\u3088\u3063\u3066\u306f\u4ed6\u306b\u3082\u624b\u9806\u304c\u5fc5\u8981\u306a\u3053\u3068\u304c\u3042\u308b\u6a21\u69d8\u3002\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1 git \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u79fb\u52d5\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u304c\u307d\u308d\u307d\u308d\u3042\u308b\u306e\u3067\u3001\u30e1\u30e2\u3002 \u624b\u9806\u6982\u8981 \u73fe\u5728\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u81ea\u4f53\u3092 clone \u3059\u308b \u65b0\u3057\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u306a\u308b\u5148\u3092\u4f5c\u6210\uff08\u7a7a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\uff09 1.\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306e origin \uff08  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[26],"tags":[],"class_list":["post-2808","post","type-post","status-publish","format-standard","hentry","category-memo_tmp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":98,"url":"https:\/\/wp.kaz.bz\/tech\/2006\/06\/06\/98.html","url_meta":{"origin":2808,"position":0},"title":"\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3002","author":"kaz. Suenaga","date":"2006\/06\/06","format":false,"excerpt":"setuid\u3057\u3066\u304a\u304f\u3068\u3044\u3044\u3002 chmod -R 4770 repo","rel":"","context":"CVS","block_context":{"text":"CVS","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/cvs"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1835,"url":"https:\/\/wp.kaz.bz\/tech\/2014\/03\/11\/1835.html","url_meta":{"origin":2808,"position":1},"title":"ProxmoxVE 3.2 \u304c\u30ea\u30ea\u30fc\u30b9 + \u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u65b9\u6cd5\u3002","author":"kaz. Suenaga","date":"2014\/03\/11","format":false,"excerpt":"Debian\u30d9\u30fc\u30b9\u306eKVM + OpenVZ\u74b0\u5883\u306eProxmoxVE\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3055\u308c\u307e\u3057\u305f\u3002 \u2026","rel":"","context":"Proxmox VE","block_context":{"text":"Proxmox VE","link":"https:\/\/wp.kaz.bz\/tech\/category\/virtualization\/proxmoxve"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2702,"url":"https:\/\/wp.kaz.bz\/tech\/2022\/03\/03\/2702.html","url_meta":{"origin":2808,"position":2},"title":"AlmaLinux \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f gitlab-ce \u306e dnf update \u304c GPG \u7f72\u540d\u691c\u8a3c\u306b\u5931\u6557\u3059\u308b\u5834\u5408\u3002","author":"kaz. Suenaga","date":"2022\/03\/03","format":false,"excerpt":"\uff08\u5b9f\u969b\u306f gitlab \u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u9650\u3089\u305a dnf \u4e00\u822c\u3067\u901a\u7528\u3059\u308b\u306f\u305a\uff09 https:\/\/pack\u2026","rel":"","context":"AlmaLinux","block_context":{"text":"AlmaLinux","link":"https:\/\/wp.kaz.bz\/tech\/category\/lin\/almalinux"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2763,"url":"https:\/\/wp.kaz.bz\/tech\/2023\/07\/09\/2763.html","url_meta":{"origin":2808,"position":3},"title":"Almalinux 9 \u3092\u30ce\u30fc\u30c8PC\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306e Wi-Fi \u8a2d\u5b9a\u306b\u3064\u3044\u3066\u3002","author":"kaz. Suenaga","date":"2023\/07\/09","format":false,"excerpt":"\uff08\u3068\u308a\u3042\u3048\u305a\u306e\u30e1\u30e2\uff1a\u305d\u306e\u3046\u3061\u66f4\u65b0\u3059\u308b\u304b\u3082\u3001\u3057\u306a\u3044\u304b\u3082\uff09 \u8ab2\u984c \u3068\u3042\u308b\u30e1\u30eb\u30ab\u30ea\u3067\u5b89\u304f\u30ce\u30fc\u30c8PC\u3092\u624b\u306b\u5165\u2026","rel":"","context":"AlmaLinux","block_context":{"text":"AlmaLinux","link":"https:\/\/wp.kaz.bz\/tech\/category\/lin\/almalinux"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1085,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/11\/18\/1085.html","url_meta":{"origin":2808,"position":4},"title":"CVE-2011-4313 \uff08 BIND \u306e\u8106\u5f31\u6027\uff09\u306eCentOS\u5bfe\u5fdc\u3002","author":"kaz. Suenaga","date":"2011\/11\/18","format":false,"excerpt":"2011.11.16.\u767a\u8868\u306e BIND \u306e\u8106\u5f31\u6027 CVE-2011-4313 \u306e CentOS \u7248Y\u2026","rel":"","context":"BIND","block_context":{"text":"BIND","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/bind"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":947,"url":"https:\/\/wp.kaz.bz\/tech\/2011\/09\/02\/947.html","url_meta":{"origin":2808,"position":5},"title":"CentOS\u7528 Apache Killer\u5bfe\u7b56\u7248 httpd \u306b\u3064\u3044\u3066\u3002","author":"kaz. Suenaga","date":"2011\/09\/02","format":false,"excerpt":"https:\/\/www.redhat.com\/security\/data\/cve\/CVE-2011-\u2026","rel":"","context":"Apache","block_context":{"text":"Apache","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/2808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=2808"}],"version-history":[{"count":2,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/2808\/revisions"}],"predecessor-version":[{"id":2813,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/2808\/revisions\/2813"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=2808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=2808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=2808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}