LoginSignup
1
0

More than 3 years have passed since last update.

GitHubコマンド早見表

Last updated at Posted at 2021-02-15

初めに

githubのコマンドをよくど忘れてしまうので、
アウトプットしようと思って投稿することにしました。

初回のプッシュ

git init
git add ファイル名                          # add . でファイル全部を追加できる。
git commit -m ""                           # ""の中に簡単で分かりやすいメッセージを入れる。
git remote add origin リポジトリURL 
git push origin ブランチ名

2回目以降のプッシュ

git add ファイル名
git commit -m ""
git push origin ブランチ名

リモートリポジトリをクローン(複製)する

git clone リポジトリURL

終わりに

閲覧ありがとうございます。
間違いなどございましたら、ご指摘お願いいたします。

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