26 Oct '13, 5am

a git unadd function…sort of.

Sometimes I accidentally git add files. Or more often, I do git add . and get a huge changelist and then realize I want to move certain files to a different changelist or a different branch. I could do a git reset which, absent --soft or --hard , pulls all the changes out of the index (aka dircache aka staging area) but leaves them in the filesystem (aka working tree). But wouldn’t it be nice to leave all the files in the index except the few I want to keep out? Yes. Yes, it would. And believe it or not, git has been telling you how, every time you do a git status . Like me, you’ve probably seen this line often enough for it to be completely invisible: # (use "git reset HEAD <file>..." to unstage) “Oh,” I hear the whole Internet saying, “that’s what that means. “But why,” you continue, “instead of documenting an obscure feature at runtime during a tangentially related oper...

Full article: http://pivotallabs.com/git-unadd/


[Screencast] Começando com Git:

akitaonrails.com 30 Oct '13, 1am

Atualização 09/04/12: Este screencast foi liberado para visualização gratuita. Acesse este post Atualização 17/08: Tem uma...