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

【Git】clone〜pushまで

Posted at

概要

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