cd ~/.ssh
ssh-keygen -t rsa # ex: RSA
# Register id_rsa.pub on GitHub
# 接続確認
ssh -T git@github.com
git config --global user.name "name"
git config --global user.email "email"
# コミット
git commit -m "old message"
# コミットメッセージを更新
git commit --amend -m "new message"
# add
git tag 1.0.0
# delete
git tag -d 1.0.0
# push to remote
git push --tags origin
git clean -fd
git checkout -- .
git restore --source=<commit-id> -- <file-name>
Zenn - Gitで特定のファイルを過去のコミットに戻す方法