ハロの外部記憶インターフェイス

そろそろ覚える努力が必要かも…

新しいファイルのPushしてみる

作業フォルダーの作成

$ mkdir WorkGitHub
$ cd WorkGitHub

Git初期化

$ git init
  1. 現在フォルダーの下に「.git」ディレクトリが生成され、必要なファイルが生成される

新しいファイルを追加

$ touch README

変更ファイルを作業内容として追加

$ git add README

今回のコメントを登録

$ git commit -m 'first commit'

リポジトリを設定

$ git remote add origin https://github.com/xxxxx/TempPage.git

変更内容をサーバーへプッシュする

$ git push -u origin master
[master (root-commit) 967a8f4] first commit
 0 files changed
 create mode 100644 README
  1. READMEが新しく生成された