Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?

More than 5 years have passed since last update.

@fujiR

既存リポジトリをGitHubに登録する

概要

極めて簡単なことだが、HerokuのToolbeltで登録したアプリをGitHubに追加しようとしたところ、若干はまったのでメモ程度に投稿。

1.GitHubに空のリポジトリを作成

通常通り、GitHubのNew Repositoryから作成するが、その際、READMEやライセンスなどを設定してファイルが作成されないようにする。
すると、<>codeの画面が以下のようになるので、後はこれの通りやればいい。
image

2.コマンドラインからPushして完了

git remote add origin git@github.com:USER_NAME/REPOSITORY_NAME.git
git push -u origin master

5
Help us understand the problem. What is going on with this article?
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
5
Help us understand the problem. What is going on with this article?