Last active
October 6, 2015 03:28
-
-
Save tknerr/2928593 to your computer and use it in GitHub Desktop.
handling external repos for bill's kitchen releases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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