23 10 / 2012

Due to big space in our account at beanstalk, we decided to have all projects under the same company to be created under one repo. I know this is not a good practice, but for a small company with tight budget, this is they way to go.

So, since git has set the default branch as master, we need to clone a specific branch under that repo. Now I’m working on new project called DBMS2, the following is how you can retrieve the DBMS2 branch.

mkdir dbms2; cd dbms2

git init

git remote add -t dbms2 origin [my.git.url]

git fetch

git checkout dbms2

Thus when I do git branch, it will list dbms2 branch only. Kewl!