LoginSignup
0

More than 5 years have passed since last update.

よく使うgitコマンド

Last updated at Posted at 2018-03-08

Gitで管理を行う際によく用いるコマンドのまとめ

状態の管理

  • 前回のcommitに戻す
$ git reset --hard
  • 現在のstage, commit状態の確認
$ git status

branch

  • branchの確認
$ git branch
  • ブランチ構造の確認
$ git log --graph

add, commit

  • 変更があった全てのファイルをstageに追加
$ git add -A
  • コミットメッセージをつけてcommit
git commit -m "コミットメッセージ"

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