Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Git Tips & Tricks
from 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
Upcoming SlideShare
Loading in …5
×

Git tips & tricks

474 views

Published on

How I moved from RubyMine Git operations to Git in a terminal and via Vim plugins.

A short follow-up after the presentation:

During QA part I got a question from Arek Flinik why I didn't push 'the ugly code' to a separate branch. I must admit that he was right and the example I used was not very clear. The project I'm working on currently does't forbid that - only when the feature (or fix) is done the other developer reviews code. Until a pull request is created, we can push the code willy-nilly.

The takeaway is as simple as this: more context and telling better story about the case would help other people understand what the topic was about. :)

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Git tips & tricks

  1. 1. Git Tips & Tricks from RubyMine to terminal and Vim
  2. 2. Git in terminal? Why?
  3. 3. ✓ more control & confidence when coding ✓ knowing what’s going on under the hood ✓ (almost) not pushing bad code
  4. 4. pushing to “private” branch alternative Git Patches
  5. 5. git format-patch
  6. 6. After
  7. 7. GitHub diff wannabe Trimming Long Diff
  8. 8. Before
  9. 9. minus + shift + s and return
  10. 10. vim-fugitive & git-gutter Git in Vim
  11. 11. 4 hunks (changes) with git-gutter
  12. 12. selected hunks to be committed
  13. 13. Whoa! Last hunk is ready to be committed!
  14. 14. Questions?
  15. 15. Thanks! @wryrych

×