Git and Github on Mac

0 views
Skip to first unread message

Željko Filipin

unread,
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.

http://zeljkofilipin.com/2009/03/28/git-and-github-on-mac/

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

Željko
--
Lead Loudmouth, Watir, watir.com

Charley Baker

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

-c

Wesley Chen

unread,
Mar 28, 2009, 11:00:24 PM3/28/09
to watir-...@googlegroups.com, watir
Thank you very much, Zeljko.

Thanks.
Wesley Chen.

Bret Pettichord

unread,
Mar 29, 2009, 3:21:27 PM3/29/09
to watir-...@googlegroups.com, watir
Zeljko,

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.

Bret
> Lead Loudmouth, Watir, watir.com <http://watir.com>
>
> >


--
Bret Pettichord
CTO, WatirCraft LLC, www.watircraft.com
Lead Developer, Watir, www.watir.com
Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Watir Training: Portland/Beaverton April 16-17
www.watircraft.com/training

Željko Filipin

unread,
Mar 30, 2009, 5:04:01 AM3/30/09
to watir-...@googlegroups.com, watir
On Sun, Mar 29, 2009 at 21:21, Bret Pettichord <br...@pettichord.com> wrote:
> git reset HEAD~
> git push

Bret,

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.

Željko
Reply all
Reply to author
Forward
0 new messages