From Fedora Project Wiki
(Created page with '= git and branches = {{{ git clone git://git.fedorahosted.org/git/spin-kickstarts.git git checkout --track -b F-11 origin/F-11 git checkout master git push --tags }}}') |
(create a remote master branch) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
= git and branches = | = git and branches = | ||
<pre> | |||
# clone | |||
git clone git://git.fedorahosted.org/git/spin-kickstarts.git | git clone git://git.fedorahosted.org/git/spin-kickstarts.git | ||
# switch to a branch | |||
git checkout --track -b F- | git checkout --track -b F-14 origin/F-14 | ||
# switch back to master | |||
git checkout master | git checkout master | ||
# push tags | |||
git push --tags | git push --tags | ||
# create remote master branch for new repo | |||
git push origin master | |||
</pre> |
Latest revision as of 04:48, 2 February 2011
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