LoginSignup
0
0

More than 1 year has passed since last update.

Git コマンド

Last updated at Posted at 2021-11-20

Gitの準備
git init

共有するファイルを選択
git add ファイル名

選択したファイルを記録
git commit -m "メッセージ"

リモートリポジトリの準備
git remote add リモートリポジトリ名 URL

リモートリポジトリにファイルをアップロード
git push origin master

リモートリポジトリのファイルをダウンロード
git pull origin master

変更したファイルを把握
git status

変更内容を把握
git diff

addしたファイルを確認
git status

わかりやすいコミットメッセージ
git commit -m "サブタイトルの色修正"

自分や他人のコミットを確認
git log
変更内容
git log -p
Qキーを押すことで終了できる

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