LoginSignup
0
2

More than 3 years have passed since last update.

git pushまでの流れ

Last updated at Posted at 2019-04-22

1.gitを使い始める。

ターミナル
$ git init

2.まずファイルをトラッキング状態にする。

ターミナル
$ git add トラッキングするファイル名

※全てのファイルをトラッキングしたい場合は以下のように書く。

ターミナル
$ git add .

3.コミットする。

ターミナル
$ git commit -m "コミットメッセージ"

コミットメッセージの部分は好きに入力してOK!

4.push

ターミナル
$ git remote add origin git@github.com:アカウント名/リポジトリ名.
$ git push -u origin master

$ git remote 〜はそのローカルリポジトリを初めて利用するときだけ必要です。

0
2
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
2