Mastering Git - Part 6: Rebase: Rewriting History | Ray Wenderlich

Rebase is a whole lot more powerful than just as a replacement for merge. It offers the ability to completely rewrite the history of your git repo. Discover how in this action-packed video.

This is a companion discussion topic for the original entry at

Not sure what magic config changes you’ve made to your version of vim but gD does nothing in vi/vim on any of my machines. If anyone is doing this course and doesn’t know “vim-fu”, you can delete the contents of file buffer (e.g. for writing the new commit message when squashing all of the util commits) with :1,$d<enter>.

1 Like

@rcritz my apologies… I didn’t mean gD… I meant dGd is delete, and G means move from the current line to the end of the file.


This topic was automatically closed after 166 days. New replies are no longer allowed.