尋常でないもふもふ

a software engineer blog

GitHubで最初のファイルをpushするまでの流れ

1. GitHub上でリポジトリ作成

ここではリポジトリ名をdarkflameとする
https://github.com/new

2. 自分のPCでディレクトリ作成

~/git 配下にdarkflameディレクトリを作成し、ローカルのgitリポジトリとする

$ cd ~/git
$ mkdir darkflame
$ cd darkflame
$ git init

3. ファイルを作成して commit する

$ touch README.md
$ git add .
$ git commit -m 'first commit'

4. リモートのURLを設定し push する

$ git remote add origin git@github.com:jnst/darkflame.git
$ git push -u origin master