Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git Surf
Search
Łukasz Korecki
October 13, 2013
Programming
0
66
Git Surf
Lightning Talk given at VimLondon Meetup, October 2013
Łukasz Korecki
October 13, 2013
Tweet
Share
More Decks by Łukasz Korecki
See All by Łukasz Korecki
Clojure LA: Building type-safe Clojure services with HTTP, JSON and Avro
lukaszkorecki
0
24
Building a product with Clojure: Lessons Learned
lukaszkorecki
0
88
pkgr
lukaszkorecki
0
54
Emacs evil-mode
lukaszkorecki
1
100
Other Decks in Programming
See All in Programming
手軽に積ん読を増やすには?/読みたい本と付き合うには?
o0h
PRO
1
170
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
140
ZOZOにおけるAI活用の現在 ~モバイルアプリ開発でのAI活用状況と事例~
zozotech
PRO
8
5.5k
Go コードベースの構成と AI コンテキスト定義
andpad
0
120
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
120
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.3k
複数人でのCLI/Infrastructure as Codeの暮らしを良くする
shmokmt
5
2.3k
【CA.ai #3】ワークフローから見直すAIエージェント — 必要な場面と“選ばない”判断
satoaoaka
0
240
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
130
配送計画の均等化機能を提供する取り組みについて(⽩⾦鉱業 Meetup Vol.21@六本⽊(数理最適化編))
izu_nori
0
150
WebRTC と Rust と8K 60fps
tnoho
2
2k
20251127_ぼっちのための懇親会対策会議
kokamoto01_metaps
2
430
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.4k
Rails Girls Zürich Keynote
gr2m
95
14k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
KATA
mclloyd
PRO
32
15k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
The Cost Of JavaScript in 2023
addyosmani
55
9.3k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
[SF Ruby Conf 2025] Rails X
palkan
0
500
Making Projects Easy
brettharned
120
6.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Transcript
git, git-browse, fugitive, vim and oh my (VimLondon, October 2013)
Łukasz Korecki @lukaszkorecki http://lukasz.korecki.me
...actually! git-browse has been renamed to git-surf (old repo link
still works though) https://github.com/lukaszkorecki/git-surf
Problem • I’m editing a file, versioned in git, backed
by GitHub • I just found a confusing method • Time to ask questions...
Old (busted) way • Go to GitHub • Click some
links to find the project, • Navigate to the file • Highlight the lines you’re interested in • Copy the url and post it to your team chat/email/whatever
Better Install hub (https://github.com/github/hub) • hub browse • Opens repository
on GitHub • Navigate to the file...
hub problems • Ruby • Everything + kitchen sink •
API calls
How about…? git surf -r20,25 path/tofile/ok.py
...or maybe? Vim, with Fugitive :Git surf -r20,30 % Visual
mode - select offending lines <leader>b
git surf? Enter git-surf • Unix! One thing well (well…)
• Depends only on coreutils (bash, awk, sed) • Fast
git surf URLs for: - repository - file - commit
- pull requests (existing/new) - branch comparison Pipeable output Works well with terminals (C+click, urxvt’s url matcher)
In the beginning Started as a hacky function in vimscript
(yay)
In the beginning (I lost the source though)
Bash? • VMs (Vagrant) • Raspberry Pi(s) • Linode as
a development server • git is ~35% shell
Surf! • Only supports GitHub urls • Has tests •
Has vim integration (duh) https://github.com/lukaszkorecki/git-surf
Thanks!