1
0

More than 1 year has passed since last update.

gitlabでアクセストークンを用いたリモートとの通信

Last updated at Posted at 2023-01-04

概要

アクセス権限で保護されたgitlabのリポジトリと通信する必要があったので、
その方法を備忘録としてまとめた。

アクセストークンの発行

gitlabのアクセストークンは以下の記事がわかりやすかった

アクセストークンをリモートURLに設定する

リモートURLを確認
git remote -v

リモートURLを設定
git remote set-url origin {リモートURL}

リモートURLは以下の法則性がある
https://{new access token}@github.com/{username}/{repository name}.git

これで通信できた。

1
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
1
0