I do not usually announce my blog posts here, but I have blogged how to contribute code to Watir. I have lost two Friday nights fighting with Git and Github to make one line change to Watir code and push it to Github. Maybe what I have learned will help future contributors in not making the same mistakes. The post has a lot of images and examples what to do, and what not to do.
<zeljko.fili...@wa-research.ch> wrote:
> I do not usually announce my blog posts here, but I have blogged how to
> contribute code to Watir. I have lost two Friday nights fighting with Git
> and Github to make one line change to Watir code and push it to Github.
> Maybe what I have learned will help future contributors in not making the
> same mistakes. The post has a lot of images and examples what to do, and
> what not to do.
> I liked it a lot, read it this morning. It's a great intro to how to
> contribute to Watir or any github project from scratch. :)
> -c
> On Sat, Mar 28, 2009 at 2:18 PM, Željko Filipin
> <zeljko.fili...@wa-research.ch> wrote:
>> I do not usually announce my blog posts here, but I have blogged how to
>> contribute code to Watir. I have lost two Friday nights fighting with Git
>> and Github to make one line change to Watir code and push it to Github.
>> Maybe what I have learned will help future contributors in not making the
>> same mistakes. The post has a lot of images and examples what to do, and
>> what not to do.
For your information, after you accidently messed up the whitespace and pushed these changes to your repo, you could have used the "git reset" command to undo your changes.
git reset HEAD~
git push
Instead you deleted your entire repo and started over. I know I was coaching you at that point, and it was late and you were tired, but I thought I would share this for next time.
BTW, this is a good example of something that you can do with Git that is not possible with SVN.
Željko Filipin wrote:
> I do not usually announce my blog posts here, but I have blogged how > to contribute code to Watir. I have lost two Friday nights fighting > with Git and Github to make one line change to Watir code and push it > to Github. Maybe what I have learned will help future contributors in > not making the same mistakes. The post has a lot of images and > examples what to do, and what not to do.