TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

43 点作者 nazri1超过 13 年前

9 条评论

yuvadam超过 13 年前
Not sure how necessary this is - interactive adding (`git add -i`) does all this much more elegantly.
评论 #3509032 未加载
评论 #3508949 未加载
unwind超过 13 年前
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.
icefox超过 13 年前
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_fr超过 13 年前
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.
famoreira超过 13 年前
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!
spuz超过 13 年前
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 未加载
glenjamin超过 13 年前
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 未加载
bostonvaulter2超过 13 年前
This is fairly similar to git shortcuts, although I think that git shortcuts is more featureful
评论 #3509743 未加载
hoschi超过 13 年前
Yeah, now I can throw away tig for staging files :D