清空commit

  1. git checkout --orphan new_branch
  2. git add -A
  3. git commit -am "commit message"
  4. git branch -D master
  5. git branch -m master
  6. git push -f origin master

用户

  1. git config user.name mewcoder
  2. git config user.email 1010953107@qq.com
  3. git config --list