{"id":4593,"date":"2024-06-13T16:47:10","date_gmt":"2024-06-13T07:47:10","guid":{"rendered":"https:\/\/github.blog\/jp\/?p=4593"},"modified":"2024-06-13T16:47:10","modified_gmt":"2024-06-13T07:47:10","slug":"top-12-git-commands-every-developer-must-know","status":"publish","type":"post","link":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/","title":{"rendered":"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078"},"content":{"rendered":"<section class=\"container-xl mx-auto p-responsive-blog\" style=\"margin-top: 20px;\">\n<div class=\"gutter-spacious\">\n<div class=\"col-12 offset-lg-1 col-lg-10\">\n<div class=\"text-mono f5-mktg color-fg-muted mb-12px\">Author<\/div>\n<div class=\"d-flex flex-wrap pb-1 flex-items-start\">\n<div class=\"d-flex flex-wrap\">\n                      <a href=\"https:\/\/github.blog\/author\/ladykerr\/\" class=\"d-flex flex-nowrap flex-items-center Link--primary f4-mktg text-bold mb-3 mr-4 mr-lg-5\" style=\"line-height: 1.25 !important;\"><br \/>\n              <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/avatars.githubusercontent.com\/u\/47188731?v=4&amp;s=200\" class=\"d-block height-auto circle byline__photo--recirc mr-14px\" alt=\"Kedasha Kerr\" width=\"40\" height=\"40\" \" style=\"padding-right: 10px;\">Kedasha Kerr<\/a>\n                  <\/div>\n<\/p><\/div>\n<div class=\"indigo-separator\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/section>\n<p style=\"font-size: 14px; padding-top: 20px;\">\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<p><a href=\"https:\/\/youtube.com\/playlist?list=PL0lo9MOBetEFcp4SCWinBdpml9B2U25-f&#038;feature=shared\">GitHub for Beginners<\/a> \u3078\u3088\u3046\u3053\u305d\u3002\u3053\u306e\u30b7\u30ea\u30fc\u30ba\u3067\u306f\u3001\u521d\u5fc3\u8005\u5411\u3051\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u307e\u3067\u3001\u3042\u3089\u3086\u308b\u3082\u306e\u306e\u57fa\u672c\u3092\u5b66\u3079\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002(\u3053\u308c\u3089\u304c\u4f55\u306a\u306e\u304b\u307e\u3060\u308f\u304b\u3089\u306a\u3044\uff1f\u5927\u4e08\u592b\u3067\u3059\u3001\u305d\u306e\u305f\u3081\u306b\u79c1\u305f\u3061\u306f\u3053\u3053\u306b\u3044\u308b\u306e\u3067\u3059\u304b\u3089\uff01)<\/p>\n<p><a href=\"https:\/\/github.blog\/jp\/2024-06-11-what-is-git-our-beginners-guide-to-version-control\/\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306fGit\u306e\u57fa\u790e\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u65e5\u306f\u3055\u3089\u306b\u4e00\u6b69\u9032\u3093\u3067\u3001\u958b\u767a\u8005\u306a\u3089\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u6700\u3082\u91cd\u8981\u306aGit\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u6bce\u65e5\u4f7f\u3046\u3053\u3068\u306b\u306a\u308b Git \u30b3\u30de\u30f3\u30c9\u306e\u30c8\u30c3\u30d7 12 \u3092\u7d39\u4ecb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<ol>\n<li><strong>Git \u306e\u8a2d\u5b9a<\/strong>\n<p>\u30de\u30b7\u30f3\u306bGit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u307e\u305a\u6700\u521d\u306b\u3059\u3079\u304d\u3053\u3068\u306f\u3001Git\u304c\u3042\u306a\u305f\u304c\u8ab0\u3067\u3042\u308b\u304b\u3092\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306bGit\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3059\u3002<code style=\"background-color: #eff2ff;\">git config<\/code> \u30b3\u30de\u30f3\u30c9\u3067 Git \u306e\u8a2d\u5b9a\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3055\u308c\u305f Git \u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u4f5c\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002E\u30e1\u30fc\u30eb\u3068\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001<code style=\"background-color: #eff2ff;\">git config --global user.name \"username\"<\/code> \u3068<code style=\"background-color: #eff2ff;\">git config --global user.email \"youremail@email.com\"<\/code> \u3068\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u306e\u4e8c\u3064\u306e\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u3001Git\u304c\u3042\u306a\u305f\u306e\u4f5c\u696d\u3092\u3042\u306a\u305f\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3068E\u30e1\u30fc\u30eb\u306b\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u3042\u306a\u305f\u304c\u884c\u3063\u305f\u4f5c\u696d\u306e\u4fe1\u7528\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Screenshort of a terminal with the git config command typed out.\" class=\"aligncenter size-large wp-image-78315 width-fit\" height=\"581\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/1-git-config.png?resize=1024%2C581\" width=\"1024\" \/><\/p>\n<\/li>\n<li>\n<p><strong>Git init<\/strong><\/p>\n<p>\u524d\u306b\u3082\u8ff0\u3079\u305f\u3088\u3046\u306b\u3001<code style=\"background-color: #eff2ff;\">git init<\/code> \u30b3\u30de\u30f3\u30c9\u306f\u65b0\u3057\u3044 Git \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002Git \u306e\u30b9\u30a4\u30c3\u30c1\u3092\u5165\u308c\u308b\u3088\u3046\u306a\u3082\u306e\u3060\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u30b3\u30de\u30f3\u30c9<code style=\"background-color: #eff2ff;\">mkdir project1<\/code> \u3067\u65b0\u3057\u3044\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u4f5c\u3063\u305f\u3068\u3057\u307e\u3057\u3087\u3046\u3002<code style=\"background-color: #eff2ff;\">cd project1<\/code> \u3092\u5b9f\u884c\u3059\u308c\u3070<code style=\"background-color: #eff2ff;\">project1<\/code> \u306b\u5165\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u73fe\u5728\u306e\u72b6\u614b\u3067\u306f\u3001<code style=\"background-color: #eff2ff;\">project1<\/code> \u306f Git \u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3092 Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3057\u3066\u3001\u81ea\u5206\u304c\u884c\u3063\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u8ffd\u8de1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code style=\"background-color: #eff2ff;\">git init<\/code> \u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3057\u305f\u30a8\u30a4\u30ea\u30a2\u30b9 &#8220;I&#8221; \u3092\u4f7f\u3063\u3066<code style=\"background-color: #eff2ff;\">git i<\/code> \u3068\u5165\u529b\u3057\u307e\u3059\u3002\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<code style=\"background-color: #eff2ff;\">git init<\/code> \u3068\u5165\u529b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Screenshot of a terminal with the git init command and responses typed out.\" class=\"aligncenter size-large wp-image-78316 width-fit\" height=\"581\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/2-git-init.png?resize=1024%2C581\" width=\"1024\" \/><\/p>\n<p>\u666e\u901a\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3067<code style=\"background-color: #eff2ff;\">git init<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u305d\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u8ffd\u8de1\u53ef\u80fd\u306a git \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306a\u308a\u3001Git \u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u30b9\u30c6\u30fc\u30bf\u30b9<\/strong><\/p>\n<p>\u65b0\u3057\u3044 Git \u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3053\u308c\u307e\u3067\u306b\u4f55\u3092\u3057\u305f\u304b\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u306f\u3001<code style=\"background-color: #eff2ff;\">git status<\/code> \u3068\u5165\u529b\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068\u3001\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u8ffd\u52a0\u30fb\u524a\u9664\u30fb\u5909\u66f4\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u3001\u307e\u3060\u4f55\u3082\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u3044\u306a\u3044\u306e\u3067 &#8220;nothing to commit&#8221; \u304c\u8fd4\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p><code style=\"background-color: #eff2ff;\">touch hello.md<\/code> \u3092\u5b9f\u884c\u3057\u3066\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001<code style=\"background-color: #eff2ff;\">git status<\/code> \u3092\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u3067\u3001&#8221;hello.md &#8220;\u3068\u3044\u3046\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Screenshot of the terminal showing the results of git status on a newly created, untracked file.\" class=\"aligncenter size-large wp-image-78317 width-fit\" height=\"587\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/3-git-status.png?resize=1024%2C587\" width=\"1024\" \/><\/p>\n<p>untracked\u30d5\u30a1\u30a4\u30eb\u3068\u306f\u3001\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u306e\u3053\u3068\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001<code style=\"background-color: #eff2ff;\">git add<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u306e\u8ffd\u52a0<\/strong><\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u65b9\u6cd5\u306f\u3001\u304b\u306a\u308a\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001<code style=\"background-color: #eff2ff;\">git add .<\/code> \u3092\u4f7f\u3063\u3066\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3057\u305f\u308a\u3001<code style=\"background-color: #eff2ff;\">git add filename<\/code> \u3092\u4f7f\u3063\u3066\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><code style=\"background-color: #eff2ff;\">learning.py<\/code> \u3068\u3044\u3046\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3068<code style=\"background-color: #eff2ff;\">waiting.py<\/code> \u3068\u3044\u3046\u5225\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3088\u3046\u3002<code style=\"background-color: #eff2ff;\">git status<\/code> \u3092\u5b9f\u884c\u3057\u3066\u5909\u66f4\u5185\u5bb9\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001<code style=\"background-color: #eff2ff;\">git add learning.py<\/code> \u3092\u5b9f\u884c\u3057\u3066\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002Git status \u3092\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u3001<code style=\"background-color: #eff2ff;\">learning.py<\/code> \u304c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u3042\u308a\u3001<code style=\"background-color: #eff2ff;\">waiting.py<\/code> \u304c\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30f3\u30c8\u30e9\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Using git add to track a file called learning.py\" class=\"aligncenter size-large wp-image-78319 width-fit\" height=\"587\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/4-git-add.png?resize=1024%2C587\" width=\"1024\" \/><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u304c\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u30b3\u30df\u30c3\u30c8\u3059\u308b\u524d\u306b\u5b89\u5168\u306a\u5834\u6240\u306b\u7f6e\u304b\u308c\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002Git add \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u306e\u306f\u3001Git \u306b\u300c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u73fe\u5728\u306e\u72b6\u614b\u3067\u8ffd\u8de1\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u300d\u3068\u4f1d\u3048\u308b\u305f\u3081\u3060\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30c8\u30e9\u30c3\u30af\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u3055\u3089\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b\u5834\u5408\u306f\u3001<code style=\"background-color: #eff2ff;\">git add<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u3082\u3046\u4e00\u5ea6\u4f7f\u3063\u3066 Git \u306b\u8ffd\u8de1\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<code style=\"background-color: #eff2ff;\">learning.py<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u73fe\u5728\u3001<code style=\"background-color: #eff2ff;\">learning.py<\/code> \u3068<code style=\"background-color: #eff2ff;\">hello.md<\/code> \u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u3067\u8ffd\u8de1\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001<code style=\"background-color: #eff2ff;\">waiting.py<\/code> \u306f\u8ffd\u8de1\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<code style=\"background-color: #eff2ff;\">learning.py<\/code> \u306b<code style=\"background-color: #eff2ff;\">code print (\"I'm learning git\")<\/code> \u3092\u8ffd\u52a0\u3057\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067<code style=\"background-color: #eff2ff;\">git status<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001<code style=\"background-color: #eff2ff;\">learning.py<\/code> \u30d5\u30a1\u30a4\u30eb\u304c\u5909\u66f4\u3055\u308c\u3001\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u5909\u66f4\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u65b0\u3057\u3044\u5909\u66f4\u3092\u8ffd\u8de1\u3059\u308b\u306b\u306f\u3001<code style=\"background-color: #eff2ff;\">git add learning.py<\/code> \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Using git add to add a file to the staging area.\" class=\"aligncenter size-large wp-image-78318 width-fit\" height=\"587\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/4-git-add-num2.png?resize=1024%2C587\" width=\"1024\" \/><\/p>\n<p>\u73fe\u5b9f\u306e\u4e16\u754c\u3067\u306f\u3001\u901a\u5e38\u3001<code style=\"background-color: #eff2ff;\">learning.py<\/code> \u30d5\u30a1\u30a4\u30eb\u3067\u884c\u3063\u3066\u3044\u308b\u4f5c\u696d\u3092\u5b8c\u4e86\u3057\u3001\u305d\u306e\u5909\u66f4\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u81ea\u5206\u306e\u4f5c\u696d\u306b\u6e80\u8db3\u3057\u305f\u3089\u3001\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u306e\u30b3\u30df\u30c3\u30c8<\/strong><\/p>\n<p>\u5909\u66f4\u3092\u300c\u30b3\u30df\u30c3\u30c8\u300d\u3059\u308b\u3053\u3068\u306f\u3001Git \u306e\u5c65\u6b74\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u73fe\u5728\u3001<code style=\"background-color: #eff2ff;\">learning.py<\/code> \u3068<code style=\"background-color: #eff2ff;\">hello.md<\/code> \u306f\u8ffd\u8de1\u3055\u308c\u3066\u304a\u308a\u3001<code style=\"background-color: #eff2ff;\">waiting.py<\/code> \u306f\u8ffd\u8de1\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<code style=\"background-color: #eff2ff;\">git commit -m \"initial commit\"<\/code> \u3092\u5b9f\u884c\u3057\u3066\u4f55\u304c\u8d77\u3053\u308b\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><code style=\"background-color: #eff2ff;\">git status<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001&#8221;2 files changed, 1 insertion in git&#8221; \u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u3075\u305f\u3064\u8ffd\u52a0\u3055\u308c\u3001\u305d\u306e\u3046\u3061\u306e\u3072\u3068\u3064\u306b\u30b3\u30fc\u30c9\u304c\u4e00\u884c\u8ffd\u52a0\u3055\u308c\u305f\u304b\u3089\u3067\u3059\u3002\u307e\u305f\u3001<code style=\"background-color: #eff2ff;\">waiting.py<\/code> \u3068\u3044\u3046\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u3053\u3068\u3082\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p><code style=\"background-color: #eff2ff;\">learning.py<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u65b0\u3057\u3044\u5909\u66f4\u3092\u52a0\u3048\u305f\u5834\u5408\u3001<code style=\"background-color: #eff2ff;\">git add. git commit -m \"add waiting file and new function\"<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u4e21\u65b9\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Using the git add and git commit commands together to track changes and store work.\" class=\"aligncenter size-large wp-image-78320 width-fit\" height=\"587\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/5-git-commit.png?resize=1024%2C587\" width=\"1024\" \/><\/p>\n<p>\u3053\u308c\u304c\u3001<code style=\"background-color: #eff2ff;\">git add<\/code> \u3068<code style=\"background-color: #eff2ff;\">git commit<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4e00\u7dd2\u306b\u4f7f\u3046\u65b9\u6cd5\u3067\u3059\uff01\u5909\u66f4\u3092\u8ffd\u8de1\u3057\u3001\u65b0\u3057\u3044\u4f5c\u696d\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u30af\u30ed\u30fc\u30f3<\/strong><\/p>\n<p>\u30ea\u30e2\u30fc\u30c8\u306b\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u306e\u30ea\u30f3\u30af\u3092\u30e9\u30c3\u30d7\u30c8\u30c3\u30d7\u306b\u53d6\u308a\u8fbc\u3080\u5fc5\u8981\u304c\u3042\u308b\u3068\u3057\u305f\u3089\u3069\u3046\u3057\u307e\u3059\u304b\uff1f\u3069\u3046\u3084\u3063\u3066\u305d\u308c\u3092\u3057\u307e\u3059\u304b\uff1f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u306b\u30b3\u30d4\u30fc\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Git \u306e\u4e16\u754c\u3067\u306f\u3001\u3053\u308c\u3092\u300c\u30af\u30ed\u30fc\u30f3\u300d\u3068\u547c\u3073\u307e\u3059\u3002\u30af\u30ed\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306f\u3001\u3054\u5b58\u77e5\u306e\u3088\u3046\u306b<code style=\"background-color: #eff2ff;\">git clone<\/code> \u3067\u3059\u3002<\/p>\n<p>Git \u3067\u5171\u540c\u4f5c\u696d\u3092\u3057\u3066\u3044\u308b\u30c1\u30fc\u30e0\u3067\u50cd\u3044\u3066\u3044\u308b\u3068\u3001Git \u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u30b3\u30d4\u30fc\u3092\u4f5c\u3063\u3066\u5909\u66f4\u3092\u52a0\u3048\u308b\u3088\u3046\u306b\u6c42\u3081\u3089\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001GitHub \u306b\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u3042\u308b\u3068\u3057\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u81ea\u5206\u306e\u30de\u30b7\u30f3\u306b\u30b3\u30d4\u30fc\u3057\u305f\u308a\u30af\u30ed\u30fc\u30f3\u3057\u305f\u308a\u3059\u308b\u306b\u306f\u3001\u7dd1\u306e &#8220;Code&#8221; \u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001HTTPS \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30b3\u30d4\u30fc\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u306e\u30ea\u30f3\u30af\u3092\u30b3\u30d4\u30fc\u3057\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u3044\u3066\u300c<code style=\"background-color: #eff2ff;\">git clone <url link><\/code> \u300d\u3068\u5165\u529b\u3057\u3001URL\u30ea\u30f3\u30af\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u30a8\u30f3\u30bf\u30fc\uff0f\u30ea\u30bf\u30fc\u30f3\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Using git clone to make a local copy of a remote repository that you can work in and edit.\" class=\"aligncenter size-large wp-image-78321 width-fit\" height=\"587\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/6-git-clone.png?resize=1024%2C587\" width=\"1024\" \/><\/p>\n<p>\u300c\u5b8c\u4e86\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u3042\u306a\u305f\u306e\u30de\u30b7\u30f3\u306b\u30af\u30ed\u30fc\u30f3\u3067\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u3001\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30ed\u30fc\u30ab\u30eb\u30b3\u30d4\u30fc\u3092\u624b\u306b\u5165\u308c\u3001\u4f5c\u696d\u3084\u7de8\u96c6\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<\/strong><\/p>\n<p>Git \u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d6\u30e9\u30f3\u30c1\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30b3\u30d4\u30fc\u3092\u4f5c\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u30d6\u30e9\u30f3\u30c1\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u540c\u3058\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53c2\u52a0\u3057\u3066\u3044\u308b\u30c1\u30fc\u30e0\u30e1\u30a4\u30c8\u3068\u306e\u5171\u540c\u4f5c\u696d\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u9032\u3081\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u30af\u30ed\u30fc\u30f3\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Typing git checkout -b update-name to create a new branch called update-name that you can make your changes on. This command will allow you to create a new branch and switch to the branch at the same time. \" class=\"aligncenter size-large wp-image-78322 width-fit\" height=\"587\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/7-git-checkout.png?resize=1024%2C587\" width=\"1024\" \/><\/p>\n<p><code style=\"background-color: #eff2ff;\">git checkout -b update-name<\/code> \u3068\u5165\u529b\u3059\u308b\u3068\u3001<code style=\"background-color: #eff2ff;\">update-name<\/code> \u3068\u3044\u3046\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u304c\u4f5c\u6210\u3055\u308c\u3001\u305d\u3053\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3068\u3001\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210\u3068\u30d6\u30e9\u30f3\u30c1\u306e\u5207\u308a\u66ff\u3048\u3092\u540c\u6642\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u30d6\u30e9\u30f3\u30c1<\/strong><\/p>\n<p><code style=\"background-color: #eff2ff;\">git branch<\/code> <code style=\"background-color: #eff2ff;\">main<\/code> \u30d6\u30e9\u30f3\u30c1\u3001init \u3068\u3044\u3046\u540d\u524d\u306e\u30d6\u30e9\u30f3\u30c1\u3001\u305d\u3057\u3066\u65b0\u3057\u304f\u4f5c\u6210\u3057\u305f \u30d6\u30e9\u30f3\u30c1\u3067\u3059\u3002\u30ad\u30fc\u30dc\u30fc\u30c9\u306e q \u30ad\u30fc\u3092\u62bc\u3057\u3066\u7d42\u4e86\u3057\u307e\u3059\u3002<code style=\"background-color: #eff2ff;\">update-name<\/code> <\/p>\n<p><div style=\"width: 1204px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-4593-1\" width=\"1204\" height=\"690\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/8-git-branch.mp4?_=1\" \/><a href=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/8-git-branch.mp4\">https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/8-git-branch.mp4<\/a><\/video><\/div>\n<\/li>\n<li>\n<p><strong>Git \u306e\u5207\u308a\u66ff\u3048<\/strong><\/p>\n<p>\u3055\u3066\u3001\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u306b\u623b\u308a\u305f\u3044\u5834\u5408\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3057\u3087\u3046\uff1f<code style=\"background-color: #eff2ff;\">git switch<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3067<code style=\"background-color: #eff2ff;\">git switch main<\/code> \u3068\u5165\u529b\u3059\u308b\u3068\u3001\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u306b\u623b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3067\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u306b\u623b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f5c\u6210\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u306b\u623b\u3063\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u5c11\u3057\u5909\u66f4\u3092\u52a0\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Using the the git switch command to go back to the main branch.\" class=\"aligncenter size-large wp-image-78324 width-fit\" height=\"484\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/9-git-switch.png?resize=1024%2C484\" width=\"1024\" \/><\/p>\n<p><code style=\"background-color: #eff2ff;\">git switch update-name<\/code> \u3068\u5165\u529b\u3057\u3066\u3001\u30b3\u30fc\u30c9\u30a8\u30c7\u30a3\u30bf\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u958b\u304d\u307e\u3059\u3002<code style=\"background-color: #eff2ff;\">index.html<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u79fb\u52d5\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066<code style=\"background-color: #eff2ff;\">open preview<\/code> \u3092\u9078\u629e\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u30b5\u30a4\u30c9\u30d6\u30e9\u30a6\u30b6\u30fc\u304c\u958b\u304d\u3001\u30b3\u30fc\u30c9\u306b\u53cd\u6620\u3055\u308c\u305f\u5909\u66f4\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a2\u30d7\u30ea\u306e\u30bf\u30a4\u30c8\u30eb\u3092 &#8220;Git Going &#8220;\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u3068\u3057\u307e\u3057\u3087\u3046\u3002HTML\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u66f4\u65b0\u3057\u3001<code style=\"background-color: #eff2ff;\">git status<\/code> \u3092\u5b9f\u884c\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u304c\u5909\u66f4\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u5b66\u3093\u3060\u3053\u3068\u3092\u5b9f\u8df5\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u5909\u66f4\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306b\u8ffd\u52a0\u3057\u3001\u5909\u66f4\u3092\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea<code style=\"background-color: #eff2ff;\">git add . git commit -m \"update app name\" git status<\/code> \u306b\u30b3\u30df\u30c3\u30c8\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u5148\u307b\u3069\u30af\u30ed\u30fc\u30f3\u3057\u305f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30ed\u30fc\u30ab\u30eb\u306e\u5909\u66f4\u3092\u53d6\u308a\u8fbc\u3093\u3067\u30a2\u30d7\u30ea\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u306e\u30d7\u30c3\u30b7\u30e5<\/strong><\/p>\n<p>\u5148\u307b\u3069\u884c\u3063\u305f\u5909\u66f4\u3092\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53d6\u308a\u8fbc\u3080\u306b\u306f\u3001\u5909\u66f4\u3092\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9<code style=\"background-color: #eff2ff;\">git push<\/code> \u306f Git \u306b\u300c\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3092\u8ffd\u8de1\u3057\u3066\u304f\u308c\u3066\u3042\u308a\u304c\u3068\u3046\u3002\u3053\u306e\u5909\u66f4\u3092\u30e1\u30a4\u30f3\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u300d \u3068\u4f1d\u3048\u307e\u3059\u3002<\/p>\n<p>\u5909\u66f4\u3092\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u8981\u3059\u308b\u306b\u3001\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u884c\u3063\u305f\u30b3\u30df\u30c3\u30c8\u3092\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53cd\u6620\u3055\u305b\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001<code style=\"background-color: #eff2ff;\">git push &lt;remote> &lt;branch><\/code> \u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002&#8221;remote&#8221; \u306f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3001&#8221;branch&#8221; \u306f\u4f5c\u696d\u4e2d\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306e\u5834\u5408\u306f\u3001<code style=\"background-color: #eff2ff;\">git push origin update-name<\/code> \u3068\u5165\u529b\u3057\u307e\u3059\u3002&#8221;origin&#8221; \u306f\u300c\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u300d\u3092\u6307\u3057\u3001&#8221;update-name&#8221; \u306f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u3057\u307e\u3059\u3002<\/p>\n<div class=\"wp-video\" style=\"width: 1204px;\"><video class=\"wp-video-shortcode\" controls=\"controls\" height=\"688\" id=\"video-78314-2\" preload=\"metadata\" width=\"1204\"><source src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/10-git-push.mp4#t=0.001\" type=\"video\/mp4\" \/><a href=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/10-git-push.mp4#t=0.001\">https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/10-git-push.mp4#t=0.001<\/a><\/video><\/div>\n<p>GitHub \u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u623b\u308b\u3068\u3001\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u308c\u304c\u3001Git push \u3068\u547c\u3070\u308c\u308b\u6240\u4ee5\u3067\u3059\uff01<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Screenshot of a GitHub repository showing the recent push.\" class=\"aligncenter size-large wp-image-78326 width-fit\" height=\"586\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/10-git-push-num2.png?resize=1024%2C586\" width=\"1024\" \/><\/p>\n<p>\u3053\u308c\u3067\u3001GitHub \u3067\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u767a\u884c\u3057\u3066\u81ea\u5206\u306e\u5909\u66f4\u3092\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u306f\u3001\u3042\u308b\u30d6\u30e9\u30f3\u30c1\u306e\u5909\u66f4\u3092\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3057\u305f\u3044\u3068\u3044\u3046\u63d0\u6848\u306e\u3053\u3068\u3067\u3059\u3002\u3042\u306a\u305f\u306e\u5834\u5408\u306f\u3001\u66f4\u65b0\u3057\u305f\u540d\u524d\u3092\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3057\u305f\u3044\u3068\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u306e \u30d7\u30eb<\/strong><\/p>\n<p><code style=\"background-color: #eff2ff;\">git pull<\/code> \u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5e38\u306b\u6700\u65b0\u306e\u72b6\u614b\u306b\u4fdd\u3064\u305f\u3081\u306b\u5b9f\u884c\u3059\u308b\u91cd\u8981\u306a\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u3092\u5909\u66f4\u5185\u5bb9\u3067\u66f4\u65b0\u3057\u305f\u3089\u3001\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u623b\u308a\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3067<code style=\"background-color: #eff2ff;\">git switch main<\/code> \u3068\u5165\u529b\u3057\u3001\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<code style=\"background-color: #eff2ff;\">index.html<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u79fb\u52d5\u3057\u3001\u30a2\u30d7\u30ea\u306e\u540d\u524d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u3092\u65b0\u3057\u3044\u540d\u524d\u3067\u66f4\u65b0\u3057\u305f\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u30a2\u30d7\u30ea\u306e\u540d\u524d\u306f\u300cTodo\u300d\u306e\u307e\u307e\u3067\u3059\u3002\u3067\u306f\u3001\u4f55\u304c\u8d77\u3053\u3063\u305f\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u3092\u66f4\u65b0\u3057\u305f\u306e\u3067\u3042\u3063\u3066\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u30b3\u30d4\u30fc\u3092\u66f4\u65b0\u3057\u305f\u306e\u3067\u306f\u306a\u3044\u3068\u601d\u3063\u305f\u306a\u3089\u3001\u305d\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30b3\u30d4\u30fc\/\u30af\u30ed\u30fc\u30f3\u3067\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u306f\u72ec\u81ea\u306e\u5c65\u6b74\u304c\u3042\u308b\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1<code style=\"background-color: #eff2ff;\">update-name<\/code> \u3067\u5909\u66f4\u3092\u884c\u3044\u3001\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30d7\u30c3\u30b7\u30e5\u3057\u305f\u306e\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u3082\u540c\u3058\u3053\u3068\u3092\u884c\u3044\u3001<code style=\"background-color: #eff2ff;\">main<\/code> \u30d6\u30e9\u30f3\u30c1\u306e\u30ed\u30fc\u30ab\u30eb\u30b3\u30d4\u30fc\u306b\u5909\u66f4\u3092\u30de\u30fc\u30b8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3068\u66f4\u65b0\u3059\u308b\u306b\u306f\u3001<code style=\"background-color: #eff2ff;\">git pull<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u884c\u308f\u308c\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u53d6\u5f97\u3057\u3001\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3057\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Using git pull to update your branch and return the changes that were made.\" class=\"aligncenter size-large wp-image-78327 width-fit\" height=\"454\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/11-git-pull.png?resize=1024%2C454\" width=\"1024\" \/><\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u3067\u3001<code style=\"background-color: #eff2ff;\">git pull<\/code> \u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3067\u30d6\u30e9\u30f3\u30c1\u304c\u66f4\u65b0\u3055\u308c\u3001\u5909\u66f4\u70b9\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002\u3059\u308b\u3068\u30011 \u3064\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5909\u66f4\u3055\u308c\u30011 \u3064\u306e\u633f\u5165\u3068 1 \u3064\u306e\u524a\u9664\u304c\u884c\u308f\u308c\u305f\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Git \u30b7\u30e7\u30a6<\/strong><\/p>\n<p>\u3055\u3066\u3001\u305f\u304f\u3055\u3093\u306e\u5909\u66f4\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u307e\u3067\u306b\u884c\u3063\u305f\u3059\u3079\u3066\u306e\u4f5c\u696d\u3092\u3069\u3046\u3084\u3063\u3066\u8a18\u9332\u3059\u308b\u306e\u3067\u3057\u3087\u3046?<\/p>\n<p>\u305d\u3053\u3067\u3001<code style=\"background-color: #eff2ff;\">git show<\/code> \u30b3\u30de\u30f3\u30c9\u306e\u51fa\u756a\u3067\u3059\u3002Git show \u3092\u4f7f\u3046\u3068\u3001\u4eca\u3044\u308b\u30d6\u30e9\u30f3\u30c1\u3067\u884c\u3063\u305f\u5909\u66f4\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5c65\u6b74\u3092\u898b\u308b\u306b\u306f\u6700\u9069\u306a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3067<code style=\"background-color: #eff2ff;\">git show<\/code> \u3092\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u3053\u306b\u306f\u305f\u304f\u3055\u3093\u306e\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<ul>\n<li>\u30b3\u30df\u30c3\u30c8 ID (sha \u3068\u547c\u3070\u308c\u307e\u3059) <\/li>\n<li>\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4f5c\u8005\u3001\u6642\u523b\u3001\u65e5\u4ed8 <\/li>\n<li>\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u305d\u306e\u3082\u306e <\/li>\n<li>\u30d5\u30a1\u30a4\u30eb\u306b\u52a0\u3048\u3089\u308c\u305f\u5b9f\u969b\u306e\u5909\u66f4\u5185\u5bb9\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Screenshot of a terminal displaying everything that the command git show returns.\" class=\"aligncenter size-large wp-image-78328 width-fit\" height=\"303\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/12-git-show.png?resize=1024%2C303\" width=\"1024\" \/><\/p>\n<\/li>\n<\/ul>\n<\/ol>\n<h2 id=\"the-github-flow\">GitHub \u30d5\u30ed\u30fc<a class=\"heading-link pl-2 text-italic text-bold\" href=\"#the-github-flow\"><\/a><\/h2>\n<p>\u3053\u308c\u3067\u3001\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u3068\u3057\u3066 git \u3092\u6271\u3046\u305f\u3081\u306e\u5341\u5206\u306a\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7df4\u7fd2\u3059\u308b\u3053\u3068\u3067\u3001\u3042\u306a\u305f\u306f\u3088\u308a\u52b9\u679c\u7684\u306a Git \u30e6\u30fc\u30b6\u30fc\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u3057\u3066\u3053\u308c\u304c\u3001\u79c1\u305f\u3061\u304c GitHub \u30d5\u30ed\u30fc\u3068\u547c\u3093\u3067\u3044\u308b\u3082\u306e\u306b\u3064\u306a\u304c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/docs.github.com\/get-started\/using-github\/github-flow\">GitHub \u30d5\u30ed\u30fc<\/a>\u3068\u306f\u3001\u8ab0\u3067\u3082\u4f7f\u3048\u308b\u30d6\u30e9\u30f3\u30c1\u30d9\u30fc\u30b9\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4f5c\u696d\u3059\u308b\u3068\u304d\u306f\u3044\u3064\u3067\u3082 GitHub \u30d5\u30ed\u30fc\u306b\u5f93\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3059\uff01<\/p>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3001\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u5909\u66f4\u3092\u52a0\u3048\u3001GitHub \u306b\u30d7\u30c3\u30b7\u30e5\u3057\u3001\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30aa\u30fc\u30d7\u30f3\u3057\u307e\u3057\u305f\u3002\u901a\u5e38\u3053\u306e\u6bb5\u968e\u3067\u306f\u3001\u81ea\u5206\u304c\u884c\u3063\u305f\u4f5c\u696d\u306b\u3064\u3044\u3066\u30c1\u30fc\u30e0\u30e1\u30a4\u30c8\u306b\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u6c42\u3081\u3001\u30b3\u30e1\u30f3\u30c8\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u30d7\u30eb\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u30e1\u30a4\u30f3\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3057\u3001\u81ea\u5206\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<p>GitHub \u30d5\u30ed\u30fc\u306e\u6700\u7d42\u6bb5\u968e\u3068\u3057\u3066\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306f<code style=\"background-color: #eff2ff;\">git branch -d update-name<\/code> \u3067\u3001\u3053\u308c\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u30ea\u30e2\u30fc\u30c8\u3067\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<code style=\"background-color: #eff2ff;\">git push \u2014delete origin update-name<\/code> \u3067\u3001\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"Using git branch -d update-name to delete a branch locally and git push \u2014delete origin update-name to delete a branch in the remote repository now that it has been merged.\n\" class=\"aligncenter size-large wp-image-78329 width-fit\" height=\"303\" src=\"https:\/\/github.blog\/wp-content\/uploads\/2024\/06\/13-git-delete.png?resize=1024%2C303\" width=\"1024\" \/><\/p>\n<p>\u3053\u308c\u304c GitHub \u306e\u30d5\u30ed\u30fc\u3067\u3059\u3002<\/p>\n<h2 id=\"wrap-up\">\u307e\u3068\u3081<a class=\"heading-link pl-2 text-italic text-bold\" href=\"#wrap-up\"><\/a><\/h2>\n<p>\u958b\u767a\u8005\u3068\u3057\u3066\u6bce\u65e5\u4f7f\u3046\u3053\u3068\u306b\u306a\u308b Git \u306e\u5fc5\u9808\u30b3\u30de\u30f3\u30c9\u3092 12 \u500b\u5b66\u3073\u307e\u3057\u305f\u3002GitHub \u306e\u30d5\u30ed\u30fc\u3092\u898b\u306a\u304c\u3089\u3001\u5b66\u3093\u3060\u30b3\u30de\u30f3\u30c9\u3092\u7df4\u7fd2\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u4f55\u304b\u8cea\u554f\u3084\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u304c\u3042\u308c\u3070\u3001<a href=\"https:\/\/gh.io\/learn-git\">GitHub \u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30fc\u306e\u30b9\u30ec\u30c3\u30c9\u306b<\/a>\u66f8\u304d\u8fbc\u3093\u3067\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u4ee5\u4e0b\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u3063\u3066\u3001Git \u306e\u30b9\u30ad\u30eb\u3092\u7df4\u7fd2\u3057\u7d9a\u3051\u307e\u3057\u3087\u3046\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/education.github.com\/git-cheat-sheet-education.pdf\">Git \u30c1\u30fc\u30c8\u30b7\u30fc\u30c8<\/a><\/li>\n<li><a href=\"https:\/\/skills.github.com\/\">GitHub \u30b9\u30ad\u30eb<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/skills\/introduction-to-github\">GitHub \u5165\u9580<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/collections\/o1njfe825p602p\">GitHub\u306e\u57fa\u790e\u3001\u30e9\u30fc\u30cb\u30f3\u30b0\u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/a><\/li>\n<\/ul>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/rE2zRhZdjFU?si=JBxPobDOOYsJntyb\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>The post <a href=\"https:\/\/github.blog\/2024-06-10-top-12-git-commands-every-developer-must-know\/\">Top 12 Git commands every developer must know<\/a>\u3000appeared first on<a href=\"https:\/\/github.blog\">\u3000The GitHub Blog<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":2030,"featured_media":4589,"comment_status":"closed","ping_status":"closed","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},"_wpas_customize_per_network":false},"categories":[23],"tags":[231,249,247,248],"coauthors":[107],"class_list":["post-4593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education","tag-git","tag-github-for-beginners","tag-github-skills","tag-skilling"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078 - GitHub\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078\" \/>\n<meta property=\"og:description\" content=\"\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/\" \/>\n<meta property=\"og:site_name\" content=\"GitHub\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-13T07:47:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/GitHub-for-beginners.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"840\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ishikawa Setsuna\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ishikawa Setsuna\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/\"},\"author\":{\"name\":\"Ishikawa Setsuna\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/afe52c7332b0fb19eb8705d49f9c3a2f\"},\"headline\":\"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078\",\"datePublished\":\"2024-06-13T07:47:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/\"},\"wordCount\":2,\"image\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/06\\\/GitHub-for-beginners.png?fit=1600%2C840\",\"keywords\":[\"Git\",\"GitHub for beginners\",\"GitHub Skills\",\"skilling\"],\"articleSection\":[\"Education\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/\",\"name\":\"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078 - GitHub\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/06\\\/GitHub-for-beginners.png?fit=1600%2C840\",\"datePublished\":\"2024-06-13T07:47:10+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/afe52c7332b0fb19eb8705d49f9c3a2f\"},\"description\":\"\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/#primaryimage\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/06\\\/GitHub-for-beginners.png?fit=1600%2C840\",\"contentUrl\":\"https:\\\/\\\/github.blog\\\/jp\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/06\\\/GitHub-for-beginners.png?fit=1600%2C840\",\"width\":1600,\"height\":840},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/2024-06-13-top-12-git-commands-every-developer-must-know\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/github.blog\\\/jp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#website\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/\",\"name\":\"GitHub\u30d6\u30ed\u30b0\",\"description\":\"\u88fd\u54c1\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u958b\u767a\u306b\u95a2\u3059\u308b\u30a2\u30a4\u30c7\u30a3\u30a2\u3084\u30a4\u30f3\u30b9\u30d4\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7686\u3055\u3093\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/github.blog\\\/jp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/github.blog\\\/jp\\\/#\\\/schema\\\/person\\\/afe52c7332b0fb19eb8705d49f9c3a2f\",\"name\":\"Ishikawa Setsuna\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/42c8400ece40d81c5cca9ea517b79e2b269a35c9c478f555522d9d14d811f54c?s=96&d=mm&r=g0a9566f22ab1691f25716d74afeebc01\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/42c8400ece40d81c5cca9ea517b79e2b269a35c9c478f555522d9d14d811f54c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/42c8400ece40d81c5cca9ea517b79e2b269a35c9c478f555522d9d14d811f54c?s=96&d=mm&r=g\",\"caption\":\"Ishikawa Setsuna\"},\"worksFor\":\"GitHub\",\"url\":\"https:\\\/\\\/github.blog\\\/jp\\\/author\\\/bigbeatishikawa\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078 - GitHub\u30d6\u30ed\u30b0","description":"\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/","og_locale":"en_US","og_type":"article","og_title":"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078","og_description":"\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/","og_site_name":"GitHub\u30d6\u30ed\u30b0","article_published_time":"2024-06-13T07:47:10+00:00","og_image":[{"width":1600,"height":840,"url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/GitHub-for-beginners.png","type":"image\/png"}],"author":"Ishikawa Setsuna","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ishikawa Setsuna","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/#article","isPartOf":{"@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/"},"author":{"name":"Ishikawa Setsuna","@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/afe52c7332b0fb19eb8705d49f9c3a2f"},"headline":"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078","datePublished":"2024-06-13T07:47:10+00:00","mainEntityOfPage":{"@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/"},"wordCount":2,"image":{"@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/#primaryimage"},"thumbnailUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/GitHub-for-beginners.png?fit=1600%2C840","keywords":["Git","GitHub for beginners","GitHub Skills","skilling"],"articleSection":["Education"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/","url":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/","name":"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078 - GitHub\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/github.blog\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/#primaryimage"},"image":{"@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/#primaryimage"},"thumbnailUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/GitHub-for-beginners.png?fit=1600%2C840","datePublished":"2024-06-13T07:47:10+00:00","author":{"@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/afe52c7332b0fb19eb8705d49f9c3a2f"},"description":"\u521d\u5fc3\u8005\u306e\u305f\u3081\u306eGitHub\u5165\u9580\u306e\u6700\u65b0\u7248\u3067\u306f\u3001Git\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044Git\u30b3\u30de\u30f3\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/#primaryimage","url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/GitHub-for-beginners.png?fit=1600%2C840","contentUrl":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/GitHub-for-beginners.png?fit=1600%2C840","width":1600,"height":840},{"@type":"BreadcrumbList","@id":"https:\/\/github.blog\/jp\/2024-06-13-top-12-git-commands-every-developer-must-know\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/github.blog\/jp\/"},{"@type":"ListItem","position":2,"name":"\u958b\u767a\u8005\u304c\u77e5\u3063\u3066\u304a\u304f\u3079\u304d Git \u30b3\u30de\u30f3\u30c912\u9078"}]},{"@type":"WebSite","@id":"https:\/\/github.blog\/jp\/#website","url":"https:\/\/github.blog\/jp\/","name":"GitHub\u30d6\u30ed\u30b0","description":"\u88fd\u54c1\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3084\u958b\u767a\u306b\u95a2\u3059\u308b\u30a2\u30a4\u30c7\u30a3\u30a2\u3084\u30a4\u30f3\u30b9\u30d4\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u7686\u3055\u3093\u306b\u5f79\u7acb\u3064\u60c5\u5831\u3092\u767a\u4fe1\u3057\u307e\u3059\u3002","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/github.blog\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/github.blog\/jp\/#\/schema\/person\/afe52c7332b0fb19eb8705d49f9c3a2f","name":"Ishikawa Setsuna","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/42c8400ece40d81c5cca9ea517b79e2b269a35c9c478f555522d9d14d811f54c?s=96&d=mm&r=g0a9566f22ab1691f25716d74afeebc01","url":"https:\/\/secure.gravatar.com\/avatar\/42c8400ece40d81c5cca9ea517b79e2b269a35c9c478f555522d9d14d811f54c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/42c8400ece40d81c5cca9ea517b79e2b269a35c9c478f555522d9d14d811f54c?s=96&d=mm&r=g","caption":"Ishikawa Setsuna"},"worksFor":"GitHub","url":"https:\/\/github.blog\/jp\/author\/bigbeatishikawa\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/github.blog\/jp\/wp-content\/uploads\/sites\/2\/2024\/06\/GitHub-for-beginners.png?fit=1600%2C840","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pasZHI-1c5","_links":{"self":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/4593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/users\/2030"}],"replies":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/comments?post=4593"}],"version-history":[{"count":14,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/4593\/revisions"}],"predecessor-version":[{"id":4609,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/posts\/4593\/revisions\/4609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/media\/4589"}],"wp:attachment":[{"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/media?parent=4593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/categories?post=4593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/tags?post=4593"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/github.blog\/jp\/wp-json\/wp\/v2\/coauthors?post=4593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}