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

Git よく使うコマンド

Last updated at Posted at 2025-11-30

Gitでよく使うコマンド一覧

gitでよく使用するコマンドのまとめ

コマンド 説明
git status 現在のブランチの状態を確認
git add <ファイル名> 指定のファイルをステージングに追加
git add . 現在のディレクトリのすべての変更をステージングに追加
git commit -m "メッセージ" ステージングされた変更をコミット
git branch ローカルのブランチ一覧を表示
git branch <ブランチ名> 新しいブランチを作成
git switch <ブランチ名> 指定したブランチに切り替え
git switch -c <ブランチ名> 新しいブランチを作成し切り替え
git merge <ブランチ名> 指定したブランチの変更を現在のブランチに統合
git log コミットの履歴を表示
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?