Git 命令

2021-09-18  本文已影响0人  330PG

用户名和邮箱修改
git config --global user.name "John Doe" git config --global user.email johndoe@example.com

删除commit

  1. git log 找到commit 上次的commit id
  2. git rebase -i xxxxxx
  3. i键进入编辑模式 --- pick 改为drop ,drop为删除目标
  4. esc 键 退出 ----- :wq 保存
  5. 无冲突的话 git push --force


    image.png
上一篇 下一篇

猜你喜欢

热点阅读