3 ms·
Git Magic
- jrockway 18y agoThis article is a little dated now. Git has new features, so you don't have to resort to (as many) workarounds. For example, instead of "git add -i", try "git add --patch". Instead of making your own branches for temporarily changing gears, try "git stash".
- nuclear_eclipse 18y ago`git add -p` is even faster :P
- maw 18y agoWhat's the advantage in git stash? I'd be more impressed by it if it stored temporary but useful files that you'd probably never commit.
- DougBTX 18y agoHere's an example of how I've used it: You're working on some code, and you discover a bug. You're not sure if it is a bug introduced by your latest changes which are not ready to commit, or something which was broken before and you simply didn't notice. Easy to check: use git stash to hide away your latest changes, re-check for the bug, and when you're ready bring back your latest work by calling git stash apply. This workflow is simpler than making temporary branches which might only have one commit and are not even worth having a name.
- whalesalad 18y agoSeems news.yc is getting more and more dupes these days, such as this one. Great article nonetheless, but it has been shared before :) There's a startup idea... give me concentrated data collected from various places on the internet (Reddit, YC, Digg, Del.icio.us, etc...) on a given topic. That's really what I want to see when I search for things like nginx, mod_wsgi, git, etc... My little brain tells me this doesn't exist yet... but surely correct me if I am wrong :) For the record I am talking about the entire interweb (as we know it through popular "social" websites like those aforementioned) not just entering the git tag into delicious.
- CaptSolo 18y agoIs what you want a list of annotated links about a given topic? Or is it an extract and compilation of contents of those other pages that you want? I had a couple of good GIT related links included in http://news.ycombinator.com/item?id=265723 http://news.ycombinator.com/item?id=265723. If people have a need for compilations of links, can post some more. Speaking about dupes, is search functionality available somewhere on news.yc?
- rjett 18y agosearchyc.com
- luckystrike 18y agoA startup based in Hyderabad, India is attempting to do something similar as you mention. (Collection of bookmarks on wide variety of topics) http://www.httpfuse.com/index.jsp http://www.httpfuse.com/index.jsp
- gaika 18y agoTry http://jaanix.com?q=git http://jaanix.com?q=git , we aggregate reddit and hacker news, delicious import is off right now :(