Git tips & tricks

15
Git Tips & Tricks from RubyMine to terminal and Vim

Transcript of Git tips & tricks

Git Tips & Tricksfrom RubyMine to terminal and Vim

Git in terminal? Why?

✓ more control & confidence when coding

✓ knowing what’s going on under the hood

✓ (almost) not pushing bad code

pushing to “private” branch alternative

Git Patches

git format-patch

After

GitHub diff wannabe

Trimming Long Diff

Before

minus + shift + s and return

vim-fugitive & git-gutter

Git in Vim

4 hunks (changes) with git-gutter

selected hunks to be committed

Whoa! Last hunk is ready to be committed!

Questions?

Thanks!@wryrych