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 https://github.com/username/reponame.git
$ git config remote.origin.proxy http://company.proxy.com:8080
$ git push -u origin master

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

cointoss1973
昔は組み込み。最近はWindows寄り。
http://cointoss.hatenablog.com/
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