{"id":73,"date":"2025-08-18T16:06:14","date_gmt":"2025-08-18T07:06:14","guid":{"rendered":"https:\/\/ik1-221-80670.vs.sakura.ne.jp\/wordpress\/archives\/73"},"modified":"2025-08-18T16:06:14","modified_gmt":"2025-08-18T07:06:14","slug":"git%e3%81%a7%e7%8f%be%e5%9c%a8%e3%81%ae%e3%83%96%e3%83%a9%e3%83%b3%e3%83%81%e7%a2%ba%e8%aa%8d%e6%96%b9%e6%b3%95%e3%81%a8git-pull%e3%81%ae%e6%84%8f%e5%91%b3","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/73","title":{"rendered":"Git\u3067\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u78ba\u8a8d\u65b9\u6cd5\u3068git pull\u306e\u610f\u5473"},"content":{"rendered":"<p>Git\u306e\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<h2>\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5<\/h2>\n<h3><code>git branch<\/code><\/h3>\n<pre><code class=\"language-bash\">git branch\n<\/code><\/pre>\n<p>\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b <code>*<\/code> \u304c\u4ed8\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\uff1a<\/p>\n<pre><code>* main\n  develop\n  feature\/login\n<\/code><\/pre>\n<p>\u3053\u306e\u5834\u5408\u306f <strong>main<\/strong> \u30d6\u30e9\u30f3\u30c1\u306b\u3044\u307e\u3059\u3002<\/p>\n<h3><code>git status<\/code><\/h3>\n<pre><code class=\"language-bash\">git status\n<\/code><\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u6700\u521d\u306e\u884c\u306b <code>On branch main<\/code> \u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2><code>git pull<\/code> \u306e\u610f\u5473<\/h2>\n<p><code>git pull<\/code> \u306f\u6b21\u306e2\u3064\u3092\u307e\u3068\u3081\u3066\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">git fetch   # \u30ea\u30e2\u30fc\u30c8\u306e\u6700\u65b0\u7248\u3092\u53d6\u5f97\ngit merge   # \u305d\u308c\u3092\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\n<\/code><\/pre>\n<p>\u3064\u307e\u308a <strong>\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u6700\u65b0\u72b6\u614b\u3092\u53d6\u308a\u8fbc\u307f\u3001\u4f5c\u696d\u4e2d\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u7d71\u5408\u3059\u308b<\/strong> \u3068\u3044\u3046\u52d5\u304d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u6ce8\u610f\u70b9<\/h3>\n<ul>\n<li>\u3059\u3067\u306b\u30ed\u30fc\u30ab\u30eb\u306b\u30b3\u30df\u30c3\u30c8\u3057\u3066\u3044\u308b\u5909\u66f4\u304c\u3042\u308b\u5834\u5408\u306f\u7af6\u5408\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>\u5b89\u5168\u306b\u6700\u65b0\u7248\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u307e\u305a <code>git fetch<\/code> \u3067\u30ea\u30e2\u30fc\u30c8\u306e\u72b6\u614b\u3092\u53d6\u308a\u8fbc\u307f\u3001\u305d\u306e\u5f8c\u5fc5\u8981\u306b\u5fdc\u3058\u3066 <code>git merge<\/code> \u3084 <code>git rebase<\/code> \u3092\u884c\u3046\u3068\u826f\u3044\u3067\u3059\u3002<\/li>\n<\/ul>\n<hr \/>\n<p>\u2705 \u307e\u3068\u3081<br \/>\n&#8211; \u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u78ba\u8a8d\uff1a<code>git branch<\/code> \u307e\u305f\u306f <code>git status<\/code><br \/>\n&#8211; <code>git pull<\/code>\uff1a\u30b5\u30fc\u30d0\u306e\u6700\u65b0\u7248\u3092\u53d6\u5f97\u3057\u3001\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u53cd\u6620\u3059\u308b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git\u306e\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002 \u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5 git branch git branch \u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b * \u304c\u4ed8\u304d\u307e\u3059\u3002 \u4f8b\uff1a * main develop feature\/login \u3053\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-git"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}