Skip to content

Instantly share code, notes, and snippets.

@tknerr
Last active October 6, 2015 03:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tknerr/2928593 to your computer and use it in GitHub Desktop.
Save tknerr/2928593 to your computer and use it in GitHub Desktop.
handling external repos for bill's kitchen releases
# clone and set up remote tracking branch
cd somewhere
git clone git://github.com/tknerr/cookbooks-motd.git target/dir
cd target/dir
git checkout -t origin/bills-kitchen-1.0_branch
# create tag and branch
cd cookbooks-motd
# make sure we are based on master and up-to-date (which is typically what we want)
git checkout master
git pull
# create tag and branch based on tag
git tag -a bills-kitchen-1.0 -m "freeze for bill's kitchen 1.0 release"
git checkout -b bills-kitchen-1.0_branch bills-kitchen-1.0
git push origin bills-kitchen-1.0_branch --tags
# don't forget to switch back
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment