From Fedora Project Wiki
(create a remote master branch)
 
Line 1: Line 1:
= git and branches =
= git and branches =
<pre>
<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-11 origin/F-11
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>
</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