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にpushする

Posted at

備忘録。
公開鍵は作成済み、GitHubに設定できているものとします:blush:

手順

//該当ディレクトリに移動する
$ cd workspace/test

//ディレクトリをgit管理下に置く(初期化)
$ git init

//ディレクトリの状態を確認
$ git status

//コミット
$ git commit -m "first commit"

//リモート(GitHub)にアクセス
$ git remote add origin https://github.com/[GitHubのアカウント名]/[リモートのリポジトリ名].git

//masterブランチへpush
$ git push origin master
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?