#修改最近一次commit的author
1. git rebase -i HEAD~1
2. 將pick修改為edit
3.?git commit –amend –author=‘Your Name you@example.com’
4. git rebase --continue
rebase -i
#新建空分支
git checkout --orphan branch-name
git rm -rf .
#修改最近一次commit的author
1. git rebase -i HEAD~1
2. 將pick修改為edit
3.?git commit –amend –author=‘Your Name you@example.com’
4. git rebase --continue
#新建空分支
git checkout --orphan branch-name
git rm -rf .