{"id":25831,"date":"2025-04-03T00:49:39","date_gmt":"2025-04-03T03:49:39","guid":{"rendered":"https:\/\/mastertrend.info\/?p=25831"},"modified":"2025-04-03T00:52:28","modified_gmt":"2025-04-03T03:52:28","slug":"10-%e5%80%8b%e3%81%ae%e5%9f%ba%e6%9c%ac%e7%9a%84%e3%81%aa-git-%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/mastertrend.info\/ja\/10-comandos-basicos-de-git\/","title":{"rendered":"\u958b\u767a\u8005\u306b\u5fc5\u8981\u306a 10 \u500b\u306e\u57fa\u672c\u7684\u306a Git \u30b3\u30de\u30f3\u30c9 \ud83d\udda5\ufe0f"},"content":{"rendered":"<h2>\u30b3\u30fc\u30c9\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306e 10 \u500b\u306e\u57fa\u672c\u7684\u306a Git \u30b3\u30de\u30f3\u30c9 \ud83d\udd12<\/h2>\n<p>\u5931\u308f\u308c\u305f\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u3092\u56de\u5fa9\u3059\u308b\u305f\u3081\u306b\u3001\u307e\u305f\u3082\u3084\u5fb9\u591c\u3092\u3057\u3066\u3044\u307e\u3059\u304b?\u3042\u306a\u305f\u4e00\u4eba\u3058\u3083\u3042\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u4f55\u767e\u4e07\u3082\u306e\u958b\u767a\u8005\u304c\u3001\u3042\u3089\u3086\u308b\u5909\u66f4\u3092\u8ffd\u8de1\u3057\u3001\u4f5c\u696d\u3092\u4fdd\u8b77\u3059\u308b\u305f\u3081\u306b\u3001\u4e16\u754c\u3092\u30ea\u30fc\u30c9\u3059\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308b Git \u3092\u4fe1\u983c\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u3082\u3088\u304f\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306e\u6982\u8981\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002 \ud83d\ude80<\/p>\n<p>Si sos nuevo en Git, empecemos con una refrescada. Un repositorio de Git (o <a class=\"wpil_keyword_link\" href=\"https:\/\/mastertrend.info\/ja\/ai%e3%81%a8%e8%87%aa%e5%8b%95%e5%8c%96%e3%82%a8%e3%83%bc%e3%82%b8%e3%82%a7%e3%83%b3%e3%83%88\/\" target=\"_blank\"  rel=\"noopener\" title=\"AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3068\u81ea\u52d5\u5316\uff1a\u4eca\u3059\u3050\u6642\u9593\u3068\u304a\u91d1\u3092\u7bc0\u7d04\u3057\u307e\u3057\u3087\u3046\uff01\u2699\ufe0f\ud83d\ude80\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"34551\">\u30ec\u30dd<\/a> en corto) contiene todos los archivos del proyecto y toda la historia de revisiones. Un repo tiene commits, que son los que se usan para registrar los cambios en el repo, y cada commit tiene un breve mensaje que el usuario escribe para indicar qu\u00e9 cambios realiz\u00f3. Git tambi\u00e9n puede <a title=\"Windows 11\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30fc\u30c9\u3092\u7121\u52b9\u306b\u3059\u308b\u65b9\u6cd5\" href=\"https:\/\/mastertrend.info\/ja\/%e3%83%91%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%b3%e3%82%b9%e3%83%a2%e3%83%bc%e3%83%89%e3%82%92%e7%84%a1%e5%8a%b9%e3%81%ab%e3%81%99%e3%82%8b\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"5167\">\u7ba1\u7406\u3092\u652f\u63f4\u3059\u308b<\/a> \u30de\u30fc\u30b8\u3059\u308b\u524d\u306b\u7af6\u5408\uff08\u305f\u3068\u3048\u3070\u30012 \u4eba\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u540c\u3058\u30b3\u30fc\u30c9\u884c\u3092\u7de8\u96c6\u3057\u305f\u5834\u5408\uff09\u3092\u691c\u51fa\u3057\u307e\u3059\u3002 <a href=\"https:\/\/git-scm.com\/downloads\/win\" target=\"_blank\" rel=\"noopener\" data-schema-attribute=\"mentions\">Windows \u306b Git \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3053\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/a><\/p>\n<h2 id=\"to-clone-an-existing-repo\"><span class=\"item-num\">1 <\/span> \u65e2\u5b58\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3059\u308b<\/h2>\n<p>\u6700\u521d\u306b\u4f7f\u3048\u308b\u30b3\u30de\u30f3\u30c9\u306f <strong>git \u30af\u30ed\u30fc\u30f3<\/strong>\u306f\u3001\u63a5\u7d9a\u3057\u3066 <a title=\"\u2728 Windows 11 \u3067\u5199\u771f\u306e\u80cc\u666f\u3092\u307c\u304b\u3057\u3066\u53cb\u9054\u3092\u9a5a\u304b\u305b\u308b\u65b9\u6cd5\u3002\" href=\"https:\/\/mastertrend.info\/ja\/windows-11%e3%81%a7%e5%86%99%e7%9c%9f%e3%81%ae%e8%83%8c%e6%99%af%e3%82%92%e3%81%bc%e3%81%8b%e3%81%99%e6%96%b9%e6%b3%95\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"5168\">\u30b3\u30d4\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/a> \u65e2\u5b58\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30ed\u30fc\u30ab\u30eb \u30de\u30b7\u30f3\u3078\u3002\u901a\u5e38\u3001\u65e2\u5b58\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306f GitHub \u3084 GitLab \u306a\u3069\u306e\u30ea\u30e2\u30fc\u30c8\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u300c\u30b3\u30fc\u30c9\u300d\u3068\u66f8\u304b\u308c\u305f\u7dd1\u8272\u306e\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001GitHub\u30ea\u30dd\u30b8\u30c8\u30eaURL\u306e\u6a2a\u306b\u3042\u308b\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001 <a title=\"Google Chrome: \u96a0\u3055\u308c\u305fURL\u3092\u77ac\u6642\u306b\u8868\u793a\u3059\u308b\u88cf\u6280\" href=\"https:\/\/mastertrend.info\/ja\/url%e3%82%92%e6%98%8e%e3%82%89%e3%81%8b%e3%81%ab%e3%81%99%e3%82%8b%e3%83%88%e3%83%aa%e3%83%83%e3%82%af\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"5166\">\u30a6\u30a7\u30d6URL<\/a>\u3002\u3053\u308c\u306f\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u3067\u3042\u308a\u3001HTTPS \u3092\u4f7f\u7528\u3057\u3066\u30af\u30ed\u30fc\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<figure>    <img decoding=\"async\" style=\"height: auto;max-width: 100%\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2024\/11\/10-Comandos-Basicos-de-Git-para-Empezar.png\" alt=\"GitHub \u3067 HTTPS \u7d4c\u7531\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u793a\u3059\u77e2\u5370\u306e\u6570\u3002\" width=\"1454\" height=\"812\" title=\"\"> <\/figure>\n<p>\u6b21\u306b\u3001\u30b3\u30d4\u30fc\u3057\u305f URL \u3092\u4f7f\u7528\u3057\u3066\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs php\">\u30ae\u30c3\u30c8 <span class=\"hljs-keyword\">\u30af\u30ed\u30fc\u30f3<\/span> https:<\/code><\/pre>\n<figure>    <img decoding=\"async\" style=\"height: auto;max-width: 100%\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2024\/11\/1731397110_892_10-Comandos-Basicos-de-Git-para-Empezar.png\" alt=\"Git Bash CLI \u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u30af\u30ed\u30fc\u30f3\u5b8c\u4e86\u30e1\u30c3\u30bb\u30fc\u30b8\u3002\" width=\"878\" height=\"519\" title=\"\"> <\/figure>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30af\u30ed\u30fc\u30f3\u304c\u4f5c\u6210\u3055\u308c\u308b\u3068\u3001\u30de\u30b7\u30f3\u4e0a\u306b\u30ed\u30fc\u30ab\u30eb \u30b3\u30d4\u30fc\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002 \ud83d\udc4d<\/p>\n<section class=\"emaki-custom-block emaki-custom-note\">\u300c\u81f4\u547d\u7684: \u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3001URL \u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5834\u5408\u306f\u3001\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u6a29\u9650\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/section>\n<h2 id=\"to-create-a-new-repo\"><span class=\"item-num\">2 <\/span> \u65b0\u3057\u3044\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u65e2\u5b58\u306eGit\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8907\u88fd\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u65b0\u3057\u3044Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 <strong>git \u521d\u671f\u5316<\/strong>\u3002\u3053\u308c\u306f\u3001\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001Git \u306e\u4f7f\u7528\u3092\u958b\u59cb\u3057\u305f\u3044\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u8ffd\u8de1\u3055\u308c\u3066\u3044\u306a\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u6700\u9069\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001\u6b63\u3057\u3044\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"hljs\">git \u521d\u671f\u5316<\/code><\/pre>\n<figure>    <img decoding=\"async\" style=\"height: auto;max-width: 100%\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2024\/11\/1731397111_252_10-Comandos-Basicos-de-Git-para-Empezar.png\" alt=\"Git init \u30b3\u30de\u30f3\u30c9\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u7a7a\u3067\u3042\u308b\u3068\u3044\u3046\u30a8\u30e9\u30fc \u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\" width=\"879\" height=\"518\" title=\"\"> <\/figure>\n<h2 id=\"creating-a-branch-for-collaboration\"><span class=\"item-num\">3 <\/span> \u30b3\u30e9\u30dc\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u305f\u3081\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>Git \u306e\u30d6\u30e9\u30f3\u30c1\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306a\u306e\u3067\u3001\u8907\u6570\u306e\u4eba\u304c\u540c\u6642\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4f5c\u696d\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e\u72ec\u7acb\u3057\u305f\u958b\u767a\u30e9\u30a4\u30f3\u3067\u3059\u3002\u901a\u5e38\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u8907\u6570\u306e\u30d6\u30e9\u30f3\u30c1\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb \u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs\">git \u30d6\u30e9\u30f3\u30c1 \u30d6\u30e9\u30f3\u30c1\u540d<\/code><\/pre>\n<p>\u3059\u3079\u3066\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs\">git \u30d6\u30e9\u30f3\u30c1<\/code><\/pre>\n<p>\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\u306b\u306f:<\/p>\n<pre><code class=\"hljs\">git \u30d6\u30e9\u30f3\u30c1 -d \u30d6\u30e9\u30f3\u30c1\u540d<\/code><\/pre>\n<section class=\"emaki-custom-block emaki-custom-tip\">\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3059\u308b\u5834\u5408\u3001\u5f37\u5236\u524a\u9664\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5927\u6587\u5b57\u306b\u3059\u308b\u3060\u3051\u3067 <strong>-D<\/strong>\u3001 \u305d\u308c\u3067\uff1a <strong>git \u30d6\u30e9\u30f3\u30c1 -D \u30d6\u30e9\u30f3\u30c1\u540d<\/strong><\/section>\n<h2 id=\"switch-between-branches\"><span class=\"item-num\">4 <\/span> \u30d6\u30e9\u30f3\u30c1\u9593\u306e\u5207\u308a\u66ff\u3048<\/h2>\n<p>\u30b3\u30de\u30f3\u30c9 <strong>git \u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8<\/strong> \u3053\u308c\u306f\u6700\u3082\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b\u3082\u306e\u306e 1 \u3064\u3067\u3001\u4e3b\u306b\u30d6\u30e9\u30f3\u30c1\u9593\u306e\u5207\u308a\u66ff\u3048\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30b3\u30df\u30c3\u30c8\u306e\u30ec\u30d3\u30e5\u30fc\u306b\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u3066\u30ed\u30fc\u30ab\u30eb \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3059\u308b\u306b\u306f:<\/p>\n<pre><code class=\"hljs xml\">git checkout \u30d6\u30e9\u30f3\u30c1\u540d\r\n<\/code><\/pre>\n<p>\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e git \u306e\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs javascript\">\u30ae\u30c3\u30c8 <span class=\"hljs-keyword\">\u30b9\u30a4\u30c3\u30c1<\/span> \u30d6\u30e9\u30f3\u30c1\u540d<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u304c\u6a5f\u80fd\u3059\u308b\u306b\u306f\u3001\u5207\u308a\u66ff\u3048\u5148\u306e\u30d6\u30e9\u30f3\u30c1\u304c\u30ed\u30fc\u30ab\u30eb\u306b\u5b58\u5728\u3057\u3001\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3078\u306e\u5909\u66f4\u304c\u6700\u521d\u306b\u30b3\u30df\u30c3\u30c8\u307e\u305f\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<section class=\"emaki-custom-block emaki-custom-tip\">\u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210\u3068\u5207\u308a\u66ff\u3048\u3092\u540c\u6642\u306b\u884c\u3046\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8 \u30b3\u30de\u30f3\u30c9: <strong>git checkout -b \u30d6\u30e9\u30f3\u30c1\u540d<\/strong><\/section>\n<h2 id=\"check-git-status\"><span class=\"item-num\">5 <\/span> Git\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n<p>\u3053\u308c\u306f\u3082\u3046 1 \u3064\u306e\u4e00\u822c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u3067\u3001\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u304c\u6700\u65b0\u304b\u3069\u3046\u304b\u3001\u30b3\u30df\u30c3\u30c8\u307e\u305f\u306f\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u5185\u5bb9\u304c\u6b8b\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3001\u5909\u66f4\u307e\u305f\u306f\u524a\u9664\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u306a\u3069\u3001\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u95a2\u3059\u308b\u3055\u307e\u3056\u307e\u306a\u60c5\u5831\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs\">git \u30b9\u30c6\u30fc\u30bf\u30b9<\/code><\/pre>\n<p>\u5909\u66f4\u304c\u306a\u3044\u5834\u5408\u3001\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure>    <img decoding=\"async\" style=\"height: auto;max-width: 100%\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2024\/11\/1731397111_826_10-Comandos-Basicos-de-Git-para-Empezar.png\" alt=\"\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067 Git \u30b9\u30c6\u30fc\u30bf\u30b9 \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30df\u30c3\u30c8\u3059\u308b\u3082\u306e\u304c\u4f55\u3082\u306a\u304f\u3001\u4f5c\u696d\u30c4\u30ea\u30fc\u304c\u30af\u30ea\u30fc\u30f3\u3067\u3042\u308b\u3068\u3044\u3046\u51fa\u529b\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\" width=\"877\" height=\"516\" title=\"\"> <\/figure>\n<h2 id=\"commit-sets-of-changes\"><span class=\"item-num\">6 <\/span> \u5909\u66f4\u30bb\u30c3\u30c8\u3092\u30b3\u30df\u30c3\u30c8\u3059\u308b<\/h2>\n<p>\u3053\u308c\u306f\u304a\u305d\u3089\u304f\u6700\u3082\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b Git \u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u7279\u5b9a\u306e\u30bf\u30b9\u30af\u3084\u554f\u984c\u304c\u7d42\u308f\u3063\u305f\u5f8c\u306a\u3069\u3001\u4f5c\u696d\u3092\u4fdd\u5b58\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u3001 <strong>git\u30b3\u30df\u30c3\u30c8<\/strong>\u3002\u3053\u308c\u306f\u57fa\u672c\u7684\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u73fe\u5728\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u5909\u66f4\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u81ea\u5206\u3084\u4ed6\u306e\u958b\u767a\u8005\u304c\u5909\u66f4\u306b\u3064\u3044\u3066\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u77ed\u304f\u660e\u78ba\u306a\u30b3\u30df\u30c3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5f15\u7528\u7b26\u3067\u56f2\u3080\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"hljs sql\">\u30ae\u30c3\u30c8 <span class=\"hljs-keyword\">\u5c02\u5ff5<\/span> -m <span class=\"hljs-string\">\u300c\u78ba\u8a8d\u30e1\u30c3\u30bb\u30fc\u30b8\u300d<\/span><\/code><\/pre>\n<section class=\"emaki-custom-block emaki-custom-warning\"><strong>Git\u30b3\u30df\u30c3\u30c8<\/strong> \u5909\u66f4\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u305d\u308c\u3067\u3082\u3001\u305d\u308c\u3089\u3092\u30ea\u30e2\u30fc\u30c8 \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u300c\u30d7\u30c3\u30b7\u30e5\u300d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/section>\n<h2 id=\"rolling-back-changes\"><span class=\"item-num\">7 <\/span> \u5909\u66f4\u3092\u5143\u306b\u623b\u3059<\/h2>\n<p>\u30b3\u30de\u30f3\u30c9 <strong>git \u3092\u5143\u306b\u623b\u3059<\/strong> \u8a31\u53ef\u3057\u307e\u3059 <a title=\"CMD\u3092\u4f7f\u7528\u3057\u3066Windows 10\/11\u3092\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u65b9\u6cd5\" href=\"https:\/\/mastertrend.info\/ja\/cmd%e7%b5%8c%e7%94%b1%e3%81%a7windows-10-11%e3%82%92%e3%83%aa%e3%82%bb%e3%83%83%e3%83%88%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"5164\">\u306a\u304f\u3059<\/a> \u5358\u4e00\u306e\u30b3\u30df\u30c3\u30c8\u306b\u3088\u3063\u3066\u30ed\u30fc\u30ab\u30eb \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u52a0\u3048\u3089\u308c\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u3002\u305f\u3068\u3048\u3070\u3001\u4ee5\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3067ReadMe.md\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u305f\u5834\u5408\u3001 <strong>git \u3092\u5143\u306b\u623b\u3059<\/strong> \u305d\u306e\u30b3\u30df\u30c3\u30c8\u3067\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089 ReadMe.md \u3092\u524a\u9664\u3057\u307e\u3059\u3002\u3053\u306e\u5909\u66f4\u3092\u53cd\u6620\u3059\u308b\u305f\u3081\u306b\u65b0\u3057\u3044\u30b3\u30df\u30c3\u30c8\u3082\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u8d70\u308b\u3060\u3051\u3067\u3044\u3044 <strong>git \u3092\u5143\u306b\u623b\u3059<\/strong> \u30b3\u30df\u30c3\u30c8 ID \u304c\u7d9a\u304d\u307e\u3059:<\/p>\n<pre><code class=\"hljs sql\">git \u3092\u5143\u306b\u623b\u3059 <span class=\"hljs-keyword\">\u5c02\u5ff5<\/span>-<span class=\"hljs-keyword\">id<\/span><\/code><\/pre>\n<p>\u305f\u304f\u3055\u3093\u306e\u30b3\u30df\u30c3\u30c8\u3092\u884c\u3063\u3066\u3044\u3066\u30b3\u30df\u30c3\u30c8ID\u304c\u3069\u3053\u306b\u3042\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30b3\u30df\u30c3\u30c8\u3092\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002 <strong>git \u30ed\u30b0<\/strong>\u3002\u30b3\u30df\u30c3\u30c8ID\u3092\u30b3\u30d4\u30fc\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059 <strong>git \u30ed\u30b0<\/strong> \u30b3\u30df\u30c3\u30c8 ID \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<figure>    <img decoding=\"async\" style=\"height: auto;max-width: 100%\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2024\/11\/1731397111_213_10-Comandos-Basicos-de-Git-para-Empezar.png\" alt=\"\u4ee5\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3068\u30b3\u30df\u30c3\u30c8 ID \u3092\u8868\u793a\u3059\u308b CLI \u306e Git log \u30b3\u30de\u30f3\u30c9\u3002\" width=\"873\" height=\"703\" title=\"\"> <\/figure>\n<section class=\"emaki-custom-block emaki-custom-warning\">\u6df7\u540c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044 <strong>git \u3092\u5143\u306b\u623b\u3059<\/strong> \u3068 <strong>git \u30ea\u30bb\u30c3\u30c8<\/strong>\u3002\u5f8c\u8005\u306f\u3001\u7279\u5b9a\u306e\u30b3\u30df\u30c3\u30c8\u4ee5\u964d\u306b\u767a\u751f\u3057\u305f\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u5143\u306b\u623b\u3057\u3001\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u4ed6\u306e\u4eba\u304c\u540c\u3058\u30d6\u30e9\u30f3\u30c1\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u308c\u306f\u7406\u60f3\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/section>\n<h2 id=\"upload-all-your-local-changes\"><span class=\"item-num\">8 <\/span> \u30ed\u30fc\u30ab\u30eb\u306e\u5909\u66f4\u3092\u3059\u3079\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b<\/h2>\n<p>\u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u5b8c\u4e86\u3057\u3066\u30b3\u30df\u30c3\u30c8\u3057\u305f\u3089\u3001\u30ed\u30fc\u30ab\u30eb\u306e\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\u30d7\u30c3\u30b7\u30e5\u3068\u306f\u3001\u30b3\u30df\u30c3\u30c8\u306b\u3088\u308b\u3053\u308c\u3089\u306e\u5909\u66f4\u3092\u30ed\u30fc\u30ab\u30eb \u30de\u30b7\u30f3\u304b\u3089\u30ea\u30e2\u30fc\u30c8 \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ee2\u9001\u3059\u308b\u64cd\u4f5c\u3067\u3059\u3002\u5909\u66f4\u3092\u9001\u4fe1\u3059\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs\">git \u30d7\u30c3\u30b7\u30e5 origin \u30de\u30b9\u30bf\u30fc<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u5909\u66f4\u3092\u30de\u30b9\u30bf\u30fc \u30d6\u30e9\u30f3\u30c1\u306b\u30d7\u30c3\u30b7\u30e5\u3057\u307e\u3059 (\u30de\u30b9\u30bf\u30fc\u306f\u901a\u5e38\u30e1\u30a4\u30f3 \u30d6\u30e9\u30f3\u30c1\u3068\u898b\u306a\u3055\u308c\u307e\u3059\u304c\u3001\u300cmain\u300d\u3082\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059)\u3002\u3046\u3093 <strong>\u30de\u30b9\u30bf\u30fc<\/strong> \u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u306f\u3001 <strong>\u4e3b\u8981<\/strong>.<\/p>\n<section class=\"emaki-custom-block emaki-custom-tip\">\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059 <strong>git \u30b9\u30c6\u30fc\u30bf\u30b9<\/strong> \u5909\u66f4\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u524d\u306b\u3002<\/section>\n<h2 id=\"retrieve-all-changes\"><span class=\"item-num\">9 <\/span> \u3059\u3079\u3066\u306e\u5909\u66f4\u3092\u5fa9\u5143<\/h2>\n<p>\u3053\u308c\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u623b\u3063\u3066\u3001\u30e1\u30a4\u30f3 \u30d6\u30e9\u30f3\u30c1\u306b\u52a0\u3048\u3089\u308c\u305f\u3059\u3079\u3066\u306e\u65b0\u3057\u3044\u5909\u66f4 (\u30de\u30fc\u30b8\u306b\u3088\u308b\u3082\u306e\u3067\u3082\u3001\u4ed6\u306e\u958b\u767a\u8005\u306b\u3088\u308b\u3082\u306e\u3067\u3082) \u3092\u30ea\u30e2\u30fc\u30c8\u3067\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30ea\u30e2\u30fc\u30c8 \u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u66f4\u65b0\u3092\u53d6\u5f97\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<pre><code class=\"hljs\">git \u30d7\u30eb\u30aa\u30ea\u30b8\u30f3\u30e1\u30a4\u30f3<\/code><\/pre>\n<p>\u4ee5\u524d\u3068\u540c\u69d8\u3001\u306f\u3044 <strong>\u30de\u30b9\u30bf\u30fc<\/strong> \u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u306f\u3001 <strong>\u4e3b\u8981<\/strong>\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001 <strong>git \u30d5\u30a7\u30c3\u30c1<\/strong> \u305d\u3057\u3066 <strong>git \u30de\u30fc\u30b8<\/strong>\u6700\u65b0\u306e\u5909\u66f4\u3092\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5373\u5ea7\u306b\u9069\u7528\u3057\u307e\u3059\uff08<strong>git \u30de\u30fc\u30b8<\/strong>) \u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u66f4\u65b0\u3092\u53d6\u5f97\u3057\u305f\u5f8c (<strong>git \u30d5\u30a7\u30c3\u30c1<\/strong>\uff09\u3002 Git \u306e\u30d7\u30eb \u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 id=\"merge-it-all-together\"><span class=\"item-num\">10 <\/span> \u3059\u3079\u3066\u3092\u7d71\u5408\u3059\u308b<\/h2>\n<p>\u6700\u5f8c\u306b\u3001\u30d6\u30e9\u30f3\u30c1\u3067\u306e\u4f5c\u696d\u304c\u5b8c\u4e86\u3057\u3001\u3059\u3079\u3066\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u305f\u3089\u3001\u6700\u5f8c\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u30e1\u30a4\u30f3 \u30d6\u30e9\u30f3\u30c1 (\u901a\u5e38\u306f dev \u307e\u305f\u306f master \u3067\u3059\u304c\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044) \u306b\u30de\u30fc\u30b8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 <strong>git \u30de\u30fc\u30b8<\/strong>\u3002\u307e\u305a\u6700\u521d\u306b <a title=\"Xbox 360 \u3067 AI \u30e2\u30c7\u30eb\u3092\u5b9f\u884c\u3059\u308b: \u3059\u3054\u3044 \ud83d\udc7e\" href=\"https:\/\/mastertrend.info\/ja\/xbox-360-%e3%81%a7-ai-%e3%83%a2%e3%83%87%e3%83%ab%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"5165\">\u5b9f\u884c\u3059\u308b <strong>git \u30d5\u30a7\u30c3\u30c1<\/strong> \u30d6\u30e9\u30f3\u30c1\u3092\u66f4\u65b0\u3059\u308b<\/a> \u30ed\u30fc\u30ab\u30eb\u3067\u5b9f\u884c\u3057\u3001\u30de\u30fc\u30b8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"hljs sql\">\u30ae\u30c3\u30c8 <span class=\"hljs-keyword\">\u30de\u30fc\u30b8<\/span> \u30d6\u30e9\u30f3\u30c1\u540d<\/code><\/pre>\n<section class=\"emaki-custom-block emaki-custom-note\">\u30ea\u30e2\u30fc\u30c8 \u30de\u30b9\u30bf\u30fc \u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3059\u308b\u30d6\u30e9\u30f3\u30c1\u306b\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/section>\n<hr \/>\n<p>\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001Git \u306e\u5b66\u7fd2\u306f\u81ea\u8ee2\u8eca\u306b\u4e57\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002\u4e00\u5ea6\u59cb\u3081\u308b\u3068\u3001\u9032\u3080\u306b\u3064\u308c\u3066\u3069\u3093\u3069\u3093\u7c21\u5358\u306b\u306a\u3063\u3066\u3044\u304d\u307e\u3059\u3002 \ud83d\udeb4\u200d\u2642\ufe0f\ud83d\udcbb<\/p>","protected":false},"excerpt":{"rendered":"<p>10 \u500b\u306e\u57fa\u672c\u7684\u306a Git \u30b3\u30de\u30f3\u30c9 \u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3001\u30b3\u30fc\u30c9\u3092\u7c21\u5358\u306b\u5931\u3046\u3053\u3068\u3092\u907f\u3051\u307e\u3057\u3087\u3046 \ud83d\udca1\ud83d\ude80<\/p>","protected":false},"author":1,"featured_media":25832,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"","iawp_total_views":30,"jnews-multi-image_gallery":[],"jnews_single_post":[],"jnews_primary_category":[],"jnews_social_meta":[],"jnews_review":[],"enable_review":"","type":"","name":"","summary":"","brand":"","sku":"","good":[],"bad":[],"score_override":"","override_value":"","rating":[],"price":[],"jnews_override_counter":[],"footnotes":""},"categories":[1435],"tags":[1445,1558,1581],"class_list":["post-25831","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutoriales","tag-evergreencontent","tag-techtips","tag-windowstips"],"_links":{"self":[{"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/posts\/25831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/comments?post=25831"}],"version-history":[{"count":15,"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/posts\/25831\/revisions"}],"predecessor-version":[{"id":105574,"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/posts\/25831\/revisions\/105574"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/media\/25832"}],"wp:attachment":[{"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/media?parent=25831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/categories?post=25831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mastertrend.info\/ja\/wp-json\/wp\/v2\/tags?post=25831"}],"curies":[{"name":"\u3046\u30fc\u3093","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}