Help us understand the problem. What is going on with this article?

既存のリポジトリを GitHub に 登録する (proxy 越し)

More than 5 years have passed since last update.


git init して add , commit したお手持ちのリポジトリをGitHubにpush する方法です。

$ git remote add origin
$ git config remote.origin.proxy
$ git push -u origin master

git config で proxy を設定するのがポイントです。
proxy サーバー名とポート番号は環境に合わせてどぞ。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away