概要
sourcetreeを利用してローカルのリポジトリを管理していました。
そのため、CUIで行うリポジトリの管理を忘れてしまったため、備忘として記載します。
手順
① cloneする。または、ローカルリポジトリを作成する。
$ git clone https://xxx.git
or
$ mkdir xxx
$ cd xxx
$ git init
② はじめのcommitをする。
$ cd xxx (<- cloneした場合のみ)
$ git add .
$ git commit -m "First commit."
③ remoteにリモートリポジトリを追加する。
$ git remote add origin https://*******
$ git remote -v
④ リモートリポジトリにpushする。
$ git push origin master