Git and Github on Mac

Skip to first unread message

Željko Filipin

Mar 28, 2009, 4:18:38 PM3/28/09
to watir, watir
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.

Let me know if I you like it, or do not like it.

Lead Loudmouth, Watir,

Charley Baker

Mar 28, 2009, 4:40:47 PM3/28/09
to, watir
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. :)


Wesley Chen

Mar 28, 2009, 11:00:24 PM3/28/09
to, watir
Thank you very much, Zeljko.

Wesley Chen.

Bret Pettichord

Mar 29, 2009, 3:21:27 PM3/29/09
to, watir

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.

> Lead Loudmouth, Watir, <>
> >

Bret Pettichord
CTO, WatirCraft LLC,
Lead Developer, Watir,

Watir Training: Portland/Beaverton April 16-17

Željko Filipin

Mar 30, 2009, 5:04:01 AM3/30/09
to, watir
On Sun, Mar 29, 2009 at 21:21, Bret Pettichord <> wrote:
> git reset HEAD~
> git push


Thank you for letting me know that. I am not surprised that Git can do such undo magic. :)

I will add it to the blog post right now, maybe it helps somebody.

Reply all
Reply to author
0 new messages