{"id":127,"date":"2023-10-25T13:28:38","date_gmt":"2023-10-25T04:28:38","guid":{"rendered":"https:\/\/miginihitsuji.com\/prog\/?p=127"},"modified":"2026-01-17T13:10:52","modified_gmt":"2026-01-17T04:10:52","slug":"github-pat-update","status":"publish","type":"post","link":"https:\/\/miginihitsuji.com\/prog\/github-pat-update\/","title":{"rendered":"GitHub\u3067remote: Invalid username or password. fatal: Authentication failed for \u301c\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u6642\u306e\u5bfe\u51e6"},"content":{"rendered":"\n<p>GitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3067\u30d7\u30eb\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ git pull\nremote: Invalid username or password.\nfatal: Authentication failed for &#39;https:\/\/github.com\/{\u30e6\u30fc\u30b6\u30fc\u540d}\/{\u30ea\u30dd\u30b8\u30c8\u30ea\u540d}&#39;<\/code><\/pre><\/div>\n\n\n\n<p>\u3069\u3046\u3084\u3089\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u3088\u3046\u3059\u30fb\u30fb\u30fb<\/p>\n\n\n\n<p>\u3068\u306f\u3044\u3048\u3001GitHub\u306f\u305a\u3063\u3068\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u308b\u3057\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u5909\u3048\u3066\u306a\u3044\u3057\u3001\u8a8d\u8a3c\u3067\u304d\u306a\u3044\u308f\u3051\u304c\u306a\u3044\u30fb\u30fb\u30fb\u3068\u601d\u3063\u305f\u3068\u304d\u306f\u305f\u3044\u3066\u3044Personal Access Token\u306e\u6709\u52b9\u671f\u9650\u5207\u308c\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Personal Access Token\u3092\u66f4\u65b0\u3059\u308b<\/h2>\n\n\n\n<p>GitHub\u753b\u9762\u53f3\u4e0a\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u753b\u50cf \uff1e Settings \uff1e Developer Settings\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Personal access tokens \u3092\u958b\u304d\u3001\u6709\u52b9\u671f\u9650\u5207\u308c\u306b\u306a\u3063\u3066\u3044\u308b\u30c8\u30fc\u30af\u30f3\u306e <mark style=\"background-color:var(--color_pale01)\" class=\"has-inline-color has-swl-deep-01-color\">Expires on \u65e5\u6642<\/mark> \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"834\" height=\"296\" src=\"https:\/\/miginihitsuji.com\/prog\/wp\/wp-content\/uploads\/GitHub_PAT_C.png\" alt=\"\" class=\"wp-image-131\" srcset=\"https:\/\/miginihitsuji.com\/prog\/wp\/wp-content\/uploads\/GitHub_PAT_C.png 834w, https:\/\/miginihitsuji.com\/prog\/wp\/wp-content\/uploads\/GitHub_PAT_C-300x106.png 300w, https:\/\/miginihitsuji.com\/prog\/wp\/wp-content\/uploads\/GitHub_PAT_C-768x273.png 768w\" sizes=\"(max-width: 834px) 100vw, 834px\" \/><\/figure>\n\n\n\n<p><small class=\"mininote\">GitHub\u3067\u306f\u53ef\u80fd\u306a\u9650\u308apersonal access tokens(classic)\u3067\u306f\u306a\u304ffine-grained tokens\u306e\u4f7f\u7528\u304c\u304a\u3059\u3059\u3081\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u4e00\u90e8\u306e\u6a5f\u80fd\u306fpersonal access tokens(classic)\u3067\u3057\u304b\u6a5f\u80fd\u305b\u305a\u3001\u4eca\u56de\u306fclassic\u3067\u306e\u8aac\u660e\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/small><\/p>\n\n\n\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u3001GitHub\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6709\u52b9\u671f\u9650\u3092\u6307\u5b9a\u3057\u3066\u3001\u30c8\u30fc\u30af\u30f3\u3092\u751f\u6210\u3057\u307e\u3059\u3002<br>\u751f\u6210\u3055\u308c\u305f\u30c8\u30fc\u30af\u30f3\u306f\u3053\u306e\u3042\u3068\u4f7f\u3046\u306e\u3067\u3001\u30b3\u30d4\u30fc\u3092\u304a\u5fd8\u308c\u305a\u306b\uff01\uff08\u3042\u3068\u304b\u3089\u78ba\u8a8d\u3067\u304d\u306a\u3044\u306e\u3067\u6ce8\u610f\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3082\u3046\u4e00\u5ea6 git pull<\/h2>\n\n\n\n<p>\u3055\u3063\u304d\u306f\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f git pull \u3092\u3082\u3046\u4e00\u5ea6\u3084\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u9806\u756a\u306b\u304d\u304b\u308c\u308b\u306e\u3067\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u3068\u3053\u308d\u3067\u5148\u307b\u3069\u66f4\u65b0\u3057\u3066\u767a\u884c\u3055\u308c\u305f\u30c8\u30fc\u30af\u30f3\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ git pull\nUsername for &#39;https:\/\/github.com&#39;: {GitHub\u306e\u30e6\u30fc\u30b6\u30fc\u540d}\nPassword for &#39;https:\/\/{\u30e6\u30fc\u30b6\u30fc\u540d}@github.com&#39;: {\u5148\u307b\u3069\u306e\u66f4\u65b0\u3067\u767a\u884c\u3055\u308c\u305f\u30c8\u30fc\u30af\u30f3}<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3067\u7121\u4e8b\u306bpull\u51fa\u6765\u307e\u3057\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3067\u30d7\u30eb\u3057\u305f\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002 \u3069\u3046\u3084\u3089\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u3066\u3044\u308b\u3088\u3046\u3059\u30fb\u30fb\u30fb \u3068\u306f\u3044\u3048\u3001GitHub\u306f\u305a\u3063\u3068\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u308b\u3057\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u5909\u3048\u3066\u306a\u3044\u3057\u3001\u8a8d\u8a3c\u3067\u304d\u306a\u3044\u308f\u3051\u304c\u306a\u3044\u30fb\u30fb\u30fb\u3068\u601d\u3063\u305f\u3068\u304d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":133,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[34],"tags":[14],"class_list":["post-127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-repo","tag-github"],"_links":{"self":[{"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":3,"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/posts\/127\/revisions\/134"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/media\/133"}],"wp:attachment":[{"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/miginihitsuji.com\/prog\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}