git rebase

Posted vivivi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git rebase相关的知识,希望对你有一定的参考价值。

check git status

  • git status
  • git log --oneline
  • git reflog
  • git remote -vv
  • git branch

reset special version

  • git reset --hard {version_number}

push to origin (new changes includes file_add/modify and branch_new/delete)

  • git push -u upstream test_ceiling_timeout

rebase

  • git rebase -i HEAD~2
  • modify commands, and wq!
  • modify commit message, and wq!
  • git add .
  • git rebase --continue
  • git push --force -u upstream test_ceiling_timeout

以上是关于git rebase的主要内容,如果未能解决你的问题,请参考以下文章