0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitのAccess Token有効期限切れの対処メモ

Last updated at Posted at 2024-08-06

はじめに

gitのaccess token有効期限が切れた際に、毎回調べて対応するのが面倒だったのでメモとして残すだけの記事です。

※access token取得方法は記載しないです。

Access Token 更新方法

まずはgitに繋いでる情報を確認します。

git remote -v
# output -> https://username:access_token:github.com/organization_name/repository.git

git上からaccess tokenを取得し上記のaccess_tokenを取得してきたupdate_access_tokenに更新します。

git remote set-url origin https://username:update_access_token@github.com//organization_name/repository.git

上記で設定が終わったら、git pushができます!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?