Save 37% off PRO during our Black Friday Sale! »

Tips and Tricks: Gotta Git Them All

61a958118feeebeda27fe6437339231f?s=47 Brent Beer
September 15, 2016

Tips and Tricks: Gotta Git Them All

It's the little details that make using Git and GitHub so great, but what are those details and commands that expose you to the best of the platform? Do you know how to close issues from pull requests? How to quickly browse to a file? Do you know how to find the history of a range of lines in a given file?

In this session we'll move you beyond the common workflows you started out learning and using with GitHub, and begin exposing you to well documented commands and features that make you feel like an expert. By the end, you will learn some practical tips and tricks to work faster, easier, and expose you to the last 10% of knowledge to master Git and GitHub.

61a958118feeebeda27fe6437339231f?s=128

Brent Beer

September 15, 2016
Tweet

Transcript

  1. Tips and Tricks Gotta Git Them All

  2. Tips and Tricks Gotta Git Them All

  3. ! Brent Beer Solutions Engineer @ GitHub likes coffee; wishes

    Daft Punk and Justice would do a back-to-back set ! brntbeer
  4. ! Jamie Strusz Services Engineer @ GitHub Likes art; travels

    in a vanagon with dog and boyfriend ! allthedoll
  5. The Agenda • Git • Git LFS • GitHub •

    Gists • Atom
  6. Git • Workflow efficiencies • Advance usage • Git LFS

  7. git log -L <start>,<end>:FILE

  8. git log -L 3,10:commands/command_clone.go

  9. None
  10. git config --global color.ui auto

  11. git status -sb

  12. Before: After:

  13. None
  14. None
  15. git grep

  16. git grep 'time_t' -- '*.[ch]'

  17. git config --global help.autocorrect 10

  18. None
  19. git add -p

  20. git merge --no-edit

  21. git rebase -i

  22. git rebase -i HEAD~5

  23. None
  24. git rebase -i --squash

  25. git lfs

  26. git lfs

  27. git lfs prune

  28. git lfs prune -c

  29. git config lfs.fetchexclude "media/reallybigfiles"

  30. git lfs clone

  31. GitHub • Collaboration • Discovery and Speed • Gists

  32. svn checkout https:// github.com/github/git-lfs

  33. github.com/explore/subscribe

  34. None
  35. Collaborate with forks from contributors

  36. Compare ranges: https://github.com/reactiveui/ ReactiveUI/compare/6.4.0.1...6.5.0

  37. None
  38. Patch ranges: https://github.com/atom/atom/ compare/master...1.11-releases.patch

  39. Anchors on line numbers

  40. None
  41. references and closing issues/PRs

  42. None
  43. Filter pull requests by status

  44. Filter pull requests by status

  45. code search

  46. None
  47. Add syntax highlighting to codeblocks in markdown files

  48. None
  49. Keyboard shortcuts

  50. Gists as full repos: git clone https://gist.github.com/allthedoll/ 966bebdbc6ed6b78942e6d9b1369c0b3

  51. Embedded Gists

  52. Atom • Keyboard commands • Packages

  53. alt-g

  54. cmd-shift-p

  55. None
  56. None
  57. None
  58. None
  59. FIN Brent Beer Solutions Engineer @ GitHub ! brntbeer !

    brent@github.com " @brntbeer Jamie Strusz Services Engineer @ GitHub allthedoll ! allthedoll@github.com ! @allthedoll "