DEV Community

Discussion on: The Git Rebase Introduction I Wish I'd Had

Collapse
 
maxwell_dev profile image
Max Antonucci

That is very true. I didn't go into too much detail about what someone can do about interactive rebasing, but since I went into detail about autosquashing, I probably should've mentioned it's basically a shortcut for what can also be done in a normal rebase. But since I've found it to be simpler and require less VIM knowledge I wanted to highlight it above the other options. Thank you for pointing this out though!

I also agree about about trying some different "Explain X with Cupcakes" posts. Maybe I can also try it with other pastries, like pies and brownies!

Collapse
 
oscherler profile image
Olivier “Ölbaum” Scherler

I forgot to mention that I do all my interactive git stuff with nano instead of VIM. I find it sufficient for this kind of work.

Thread Thread
 
unixnut profile image
Alastair Irvine

This can be as easy as putting export VISUAL=nano in your .profile .

There's probably also a setting you can use with git config.

Thread Thread
 
oscherler profile image
Olivier “Ölbaum” Scherler

I export EDITOR=nano (never heard of VISUAL before,) and in my .zshrc, but yes.

Since then I’ve switched to vim, though. I learned to do just what I did in nano (navigate with the arrow keys, type, cut and paste entire lines, search, save, and quit,) and the rest I’m learning as the needs occur. The first one being :! sudo tee % to save when you forgot to open the file as root. :-D