Skip to content

Git Gotchas and Tips

triptych edited this page Feb 15, 2013 · 20 revisions

Developing for YUI will lead you to deal with git quite often. The purpose of this page is to list several git gotchas as well as offer tips for using git with YUI. If you run into any "gotchas" please feel free to add to the list!

Gotchas

Branching

Without an explicit , git branch and git checkout -b default to HEAD - which is the branch you are currently on (not necessarily master). So for :

$ git checkout topic-branch-one $ git checkout -b topic-branch-two

topic-branch-two would be created off of topic-branch-one, not master.

Git Cheat Sheet

2

Clone this wiki locally