User:Petersen/git-notes

From FedoraProject

< User:Petersen
Revision as of 04:48, 2 February 2011 by Petersen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

git and branches

# clone
git clone git://git.fedorahosted.org/git/spin-kickstarts.git
# switch to a branch
git checkout --track -b F-14 origin/F-14
# switch back to master
git checkout master

# push tags
git push --tags

# create remote master branch for new repo
git push origin master