Re:Octotree: the missing GitHub tree view (Chrome extension)
by staticshock on Tuesday May 13, 2014 @07:10PM
(#7741183)
For the "my repo, wrong branch" use case, you have some options:
git show other-branch:path/to/file
or: git grep -e pattern other-branch
Re:Octotree: the missing GitHub tree view (Chrome extension)
by skyebook on Wednesday May 14, 2014 @12:18AM
(#7742175)
git-grep is indescribably awesome. To be fair though, I search github pretty frequently because it means I can search issues also. If issues were git repos themselves it would be a different ballgame.
- It's someone else's repo (eg, a gem I'm using), and I just want to see one line real quick, rather than cloning the whole project locally and finding it there.
- It's my repo, but I my local working copy is on a different branch or has uncommitted changes, so I don't want to bother stashing + changing branches just to look up one line
- I'm poking around several repos that I have no intention of using- eg, looking at an interview candidate's public repos