LoginSignup
0
1

個人的「質はともかく継続する」17日目です

よく使うコマンドまとめ

{ } …任意の値をいれる箇所

初期化

git init 

ステージング

git add "ファイル名"

コミット

git commit -m "メッセージ" "ファイル名"

ログを確認

git log

状態を確認

git status {FILENAME}

ステージングの取り消し

git restore --staged {FILENAME}

コミットの取り消し

logでCOMMIT IDを取得後

git revert {COMMIT ID} --no-edit
0
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
0
1