{"id":501,"date":"2026-07-06T19:00:01","date_gmt":"2026-07-06T10:00:01","guid":{"rendered":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/501"},"modified":"2026-07-06T19:00:01","modified_gmt":"2026-07-06T10:00:01","slug":"git%e3%81%ae%e3%81%8a%e3%81%97%e3%82%83%e3%82%8c%e3%81%aa%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/501","title":{"rendered":"Git\u306e\u304a\u3057\u3083\u308c\u306a\u4f7f\u3044\u65b9"},"content":{"rendered":"<h2>Git\u3092\u304a\u3057\u3083\u308c\u306b\u4f7f\u3046\u30b3\u30c4<\/h2>\n<p>Git\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u3068\u3057\u3066\u3060\u3051\u3067\u306a\u304f\u3001\u958b\u767a\u30d5\u30ed\u30fc\u3092\u7f8e\u3057\u304f\u3001\u52b9\u7387\u7684\u306b\u6f14\u51fa\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u5de5\u592b\u3067\u898b\u305f\u76ee\u3082\u4f7f\u3044\u52dd\u624b\u3082\u5411\u4e0a\u3055\u305b\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3>1. \u30ab\u30e9\u30d5\u30eb\u306a\u30ed\u30b0\u3092\u6d3b\u7528\u3059\u308b<\/h3>\n<p><strong>git log<\/strong> \u306b\u8272\u3092\u4ed8\u3051\u308c\u3070\u3001\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u304c\u4e00\u76ee\u3067\u628a\u63e1\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code>git log --oneline --graph --decorate --color<\/code><\/pre>\n<h3>2. \u30a8\u30a4\u30ea\u30a2\u30b9\u3067\u4f5c\u696d\u3092\u77ed\u7e2e<\/h3>\n<p>\u3088\u304f\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u306f\u30a8\u30a4\u30ea\u30a2\u30b9\u306b\u767b\u9332\u3057\u3066\u304a\u304f\u3068\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u304c\u3059\u3063\u304d\u308a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>git config --global alias.co checkout\ngit config --global alias.br branch\ngit config --global alias.st status\ngit config --global alias.lg 'log --oneline --graph --decorate --color'<\/code><\/pre>\n<h3>3. \u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u7d75\u6587\u5b57\u3092\u5165\u308c\u308b<\/h3>\n<p>\u7d75\u6587\u5b57\u3092\u5165\u308c\u308b\u3060\u3051\u3067\u3001\u5909\u66f4\u5185\u5bb9\u304c\u76f4\u611f\u7684\u306b\u4f1d\u308f\u308a\u307e\u3059\u3002<\/p>\n<pre><code>git commit -m ':sparkles: Add new feature X'<\/code><\/pre>\n<h3>4. \u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30ea\u30d9\u30fc\u30b9\u3067\u5c65\u6b74\u3092\u6574\u3048\u308b<\/h3>\n<p>\u4e0d\u8981\u306a\u30b3\u30df\u30c3\u30c8\u306f <strong>rebase -i<\/strong> \u3067\u307e\u3068\u3081\u3001\u5c65\u6b74\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u4fdd\u3061\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>git rebase -i HEAD~5<\/code><\/pre>\n<h3>5. \u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3092\u8996\u899a\u7684\u306b\u7ba1\u7406\u3059\u308b<\/h3>\n<p><strong>git add -p<\/strong> \u3067\u5dee\u5206\u3054\u3068\u306b\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u3067\u304d\u307e\u3059\u3002\u5909\u66f4\u7b87\u6240\u3092\u9078\u3073\u306a\u304c\u3089\u8ffd\u52a0\u3059\u308b\u306e\u3067\u3001\u9593\u9055\u3044\u304c\u6e1b\u308a\u307e\u3059\u3002<\/p>\n<pre><code>git add -p<\/code><\/pre>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u3061\u3087\u3063\u3068\u3057\u305f\u5de5\u592b\u3067Git\u306e\u64cd\u4f5c\u304c\u697d\u3057\u304f\u3001\u304b\u3064\u898b\u305f\u76ee\u3082\u6d17\u7df4\u3055\u308c\u307e\u3059\u3002\u81ea\u5206\u306e\u958b\u767a\u30b9\u30bf\u30a4\u30eb\u306b\u5408\u308f\u305b\u3066\u3001\u4e0a\u8a18\u30c6\u30af\u30cb\u30c3\u30af\u3092\u53d6\u308a\u5165\u308c\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git\u3092\u304a\u3057\u3083\u308c\u306b\u4f7f\u3046\u30b3\u30c4 Git\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u3068\u3057\u3066\u3060\u3051\u3067\u306a\u304f\u3001\u958b\u767a\u30d5\u30ed\u30fc\u3092\u7f8e\u3057\u304f\u3001\u52b9\u7387\u7684\u306b\u6f14\u51fa\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u5de5\u592b\u3067\u898b\u305f\u76ee\u3082\u4f7f\u3044\u52dd\u624b\u3082\u5411\u4e0a\u3055\u305b\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002 1. \u30ab\u30e9\u30d5\u30eb [&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-501","post","type-post","status-publish","format-standard","hentry","category-git"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/501","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=501"}],"version-history":[{"count":0,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/501\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}