LoginSignup
2
1

More than 1 year has passed since last update.

Git 基礎コマンド

Posted at

共有するファイルの選択

git add ファイル名

選択したファイルをコミットする

git commit -m "メッセージ"

リモートリポジトリの登録

git remote add リモートリポジトリ名 URL

リモートリポジトリへのプッシュ

git push 登録したリポジトリ名 master

リモートリポジトリからのプル

git pull 登録したリポジトリ名 master

変更したファイルの表示

git status

addされたファイルが緑、addされていないファイルが赤

変更内容の確認

git diff

変更前が赤文字、変更後が緑文字

コミットの確認

git log

コミットの変更内容確認

git log -p
2
1
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
2
1