Git

From Wiki2
Revision as of 12:46, 8 December 2011 by Tim (talk | contribs) (Created page with "===git=== ====localhost==== The idea is to have production code on soupteam.com and then a copy of that code on localhost hpc. That copy has a branch that you can try fixes in. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

git

localhost

The idea is to have production code on soupteam.com and then a copy of that code on localhost hpc. That copy has a branch that you can try fixes in. When they are ready to go live then you push them to github and merge. Ifit doesn't work out you can role back.

Started by cloning (which creates a remote named 'origin')

$ git clone git@github.com:mckennatim/OBsoup.git

Then I created a branch:

$ git checkout -b loco
Switched to a new branch 'loco'

add. commit

push remote branch

$ git push origin loco