LoginSignup
0
0

More than 5 years have passed since last update.

Git pushで403吐かれた....

Posted at

普通はこう

.git/config
url = https://github.com/ユーザー名/リポジトリ名.git

こうしてやればうまく行く

.git/config
url = https://ユーザー名@github.com/ユーザー名/リポジトリ名.git

自分が所属しているグループのリポジトリにpushするためには.

.git/config
url = https://ユーザー名@github.com/グループ名/リポジトリ名.git

これらをmasterとして登録すると.git pushで両方にpushできるみたい.

.git/config
[remote "origin"]
        url = https://ユーザー名@github.com/ユーザー名/リポジトリ名.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = https://ユーザー名@github.com/グループ名/リポジトリ名.git
        fetch = +refs/heads/*:refs/remotes/origin/*

多分

[remote "origin"]のところを[remote "mine"]とかにして追加すると,
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