Toshusai blog

知識の保管庫

Git

Gitでコミットの日時を変更する

Git

1つ前のコミットのcomitter dateとauthor dateを現在の時刻に変更する GIT_COMMITTER_DATE=\"$(date)\" git commit --amend --no-edit --date \"$(date)\" 特定のコミットを変更する git rebase <commit-hash>^ - pickをeに変更して保存 amendで更新 git rebase --continu</commit-hash>…

Gitの使い方まとめ

Git

Gitの備忘録 基本的な使い方 初期化 > git init リモートリポジトリを追加 > git remote add origin https://hogehoge # 削除 > git remote rm otigin コミット > git add [file] # 新規、変更、削除をすべて > git add -A # 変更、削除をすべて > git add -…