OT: I'd love an interactive "Learn Git" webpage where you could learn to use Git with demo scenarios. Something like "Try Ruby" but for git.
Git add -p: a powerful git feature
11–20 of 108 posts
Re: Git add -p: a powerful git feature
#12OT: I'd love an interactive "Learn Git" webpage where you could learn to use Git with demo scenarios. Something like "Try Ruby" but for git.
Re: Git add -p: a powerful git feature
#13OT: I'd love an interactive "Learn Git" webpage where you could learn to use Git with demo scenarios. Something like "Try Ruby" but for git.
http://www.codeschool.com/courses/try-git
They also have a second, more advanced course on the site.
Re: Git add -p: a powerful git feature
#14OT: I'd love an interactive "Learn Git" webpage where you could learn to use Git with demo scenarios. Something like "Try Ruby" but for git.
Re: Git add -p: a powerful git feature
#15There's also 'git reset -p' to interactively unstage changes
Re: Git add -p: a powerful git feature
#16Re: Git add -p: a powerful git feature
#17Site wont load for me. I'm a big fan of "git gui". You can commit individual lines.
Nice. Too bad I'm on svn. Though I suppose you'd want to be really careful about not creating a commit that's broken, e.g. by overlooking a declaration. Can you easily check whether currently staged changes still compile and/or pass a test?
Re: Git add -p: a powerful git feature
#18Re: Git add -p: a powerful git feature
#19Site wont load for me. I'm a big fan of "git gui". You can commit individual lines.
Here's another article discussing git add -p: http://blog.tplus1.com/index.php/2008/10/31/break-up-changes... Nice. Too bad I'm on svn. Though I suppose you'd want to be really careful about not creating a commit that's broken, e.g. by overlooking a declaration. Can you easily check whether currently staged changes still compile and/or pass a test?
The argument of creating a broken commit is natural, but not very relevant IMO: after all, with svn and co, the risk of forgetting to commit a new file is pretty strong as well. If you care very much about having non-broken commit, the only reliable solution is a gateway that merge commits only after they pass a test suite.
Re: Git add -p: a powerful git feature
#20OT: I'd love an interactive "Learn Git" webpage where you could learn to use Git with demo scenarios. Something like "Try Ruby" but for git.
OK, perhaps you are on Windows, then i am not sure if it's that simple.