User:Petersen/git-notes

From FedoraProject

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