10
7

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 5 years have passed since last update.

ローカルフォルダをGitHubにあげる

Posted at

元々ローカルPC上で作成していた資産を
新規でGit管理にしてGitHubにあげる手順

# 対象のフォルダ(ディレクトリ)に移動する
$ cd hoge

# git init で ローカルリポジトリを作成する
$ git init
$ git add .
$ git commit -m "Initial commit"

# リモートリポジトリのアクセス先を設定する
$ git remote add origin https://github.com/GitHubのユーザ名/GitHubのリポジトリ名.git

# pushする
$ git push -u origin master

10
7
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
10
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?