git笔记

#Git

Modify commit author

git rebase --root --exec "git commit --amend --author='Mistivia<i@mistivia.com>' --no-edit"

self host http backend using nginx only

git init --bare
mv hooks/post-update.sample hooks/post-update
git symbolic-ref HEAD refs/heads/main

git remote add blog ~/blog/projects/foo.git
git push blog main