Skip to content

Instantly share code, notes, and snippets.

View mtytheone's full-sized avatar
🤔
Learning everything.

Hatze mtytheone

🤔
Learning everything.
View GitHub Profile
@gatosyocora
gatosyocora / git_commands.md
Last active May 25, 2021 17:22
忘れがちなgitのコマンドをまとめる
  • ファイルの変更はそのままで直前のコミットを取り消す(Windows)

    $git reset --soft "HEAD^"

  • gitignoreの変更を適用(管理しなくなったファイルの履歴も残さない(push前))

    1. $git rm -r --cached .
    2. $git add .
    3. $git commit --amend --no-edit