본문 바로가기

Git

Rebase My Branch on Top of Something

* When trying to rebase my branch on top of develop(or master branch),

On my branch..

> git rebase origin/develop

> git push -f origin my-branch-name


* When trying to rebase A onto B branch,

On the branch A,

> git rebase B A

> git push -f origin A


'Git' 카테고리의 다른 글

Remove/Change Previous Commit  (0) 2018.11.08
Undoing Changes  (0) 2017.06.18
How to view the commit log  (0) 2017.06.11
Performing first commit  (0) 2017.06.11
Initializing a repository  (0) 2017.06.11