TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git-number: Use numbers for dealing with files in git

43 pointsby nazri1over 13 years ago

9 comments

yuvadamover 13 years ago
Not sure how necessary this is - interactive adding (`git add -i`) does all this much more elegantly.
评论 #3509032 未加载
评论 #3508949 未加载
unwindover 13 years ago
I find I just use tab-completion. I'm quite used to writing the names of the files in my project anyway, and find the "hard core" interaction through the shell quite pleasant, it simply is in line with what you tend to do in the shell.<p>Micro-plug: if you use the Geany editor/IDE, you might like <a href="https://github.com/unwind/gitbrowser" rel="nofollow">https://github.com/unwind/gitbrowser</a> to make switching between files (opening them if necessary) by substring-searching the filename from the Git repo pleasant.
icefoxover 13 years ago
Neat little tool. For add's though probably 99% of the time I use 'git add -p' Not only do I not have to type the file names, but I get a quick little final code review to boot which seems win all around.
评论 #3508832 未加载
canop_frover 13 years ago
Looks similar to scm breeze : <a href="https://github.com/ndbroadbent/scm_breeze" rel="nofollow">https://github.com/ndbroadbent/scm_breeze</a><p>But scm breeze (which I use every days) seems much more powerful.
famoreiraover 13 years ago
Interesting and useful if your are using the command line version of git.<p>However since starting to use Magit (git mode for Emacs) I never feel the need to drop to the console in order to interact with my git repo because Magit has such a brilliant interface. I encourage people to try out!
spuzover 13 years ago
This is nice but to be honest I'm surprised it's not a feature already built into git. It seems strange that for a command line tool the fastest way to interact with files is to use the mouse to double click and then right click . Maybe you could submit a patch to git itself?
评论 #3510193 未加载
评论 #3508932 未加载
glenjaminover 13 years ago
The case of adding some files or bits of files is one of the few cases where I spin up a GUI tool. I find git-cola is excellent at this.<p>The other GUI case is using qgit when browsing logs in detail.
评论 #3509085 未加载
bostonvaulter2over 13 years ago
This is fairly similar to git shortcuts, although I think that git shortcuts is more featureful
评论 #3509743 未加载
hoschiover 13 years ago
Yeah, now I can throw away tig for staging files :D