创建仓库及设置权限
git init --bare test.git
chown -R git.git /code
chmod -R 700 /code删除最新提交
git reset --hard HEAD~1
git push origin 分支名--forcegit init --bare test.git
chown -R git.git /code
chmod -R 700 /codegit reset --hard HEAD~1
git push origin 分支名--force