Wednesday, May 7, 2014

Git - Using rebase

@ If you want to marge some commits into one
@ 5 is that your commits count
$ git rebase -i HEAD~5

@ Change pick for squash lik this
@ Save and quit the edit.(:qw)











@ You can edit the messeage.
@ Just save and quit the edit(:qw).

@ Push it your repository.
$ git push origin +master

---------------------------------------------------------
@ You can cancel like this
$ git rebase --abort

No comments:

Post a Comment