0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ローカルリポジトリをGitHubへアップロードする

Posted at

ローカルリポジトリ作成

git init 
git add .
git commit -, "init commit"

現在のディレクトリの内容の初期コミットが行われる。

GitHubで新規リポジトリを作成する

Initialize the repositoryにいろいろとチェックボックスがあるが、それらはチェックしない。
image.png

作成後、アップロードするのに必要なURLが表示されるので、それをコピーする。
image.png

ローカルリポジトリに戻る。

GitHubへアップロードする

git remote add origin {さっきコピーしたURL}
git push origin master

originは任意の名前だと思うので他の値でもおそらくいけると思われる。

これにて完了です。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?