Skip to content

Instantly share code, notes, and snippets.

@michaelklapper
Last active December 17, 2015 22:49
Show Gist options
  • Save michaelklapper/5685099 to your computer and use it in GitHub Desktop.
Save michaelklapper/5685099 to your computer and use it in GitHub Desktop.
Create a mirror including some notes about how to manage custom branches additionally.
git clone --mirror git://git.typo3.org/Packages/TYPO3.CMS.git
git remote add github git@github.com:michaelklapper/TYPO3.CMS.git
git push git@github.com:michaelklapper/TYPO3.CMS.git
git remote update
git push git@github.com:michaelklapper/TYPO3.CMS.git
git checkout -b morphodo/TYPO3_4-7/4-7-12 TYPO3_4-7-12
// add changes
git push origin morphodo/TYPO3_4-7/4-7-12
// how to bring your changes to the next stable tag?
git checkout -b morphodo/TYPO3_4-7/4-7-13 origin/morphodo/TYPO3_4-7/4-7-12
git rebase TYPO3_4-7-13
// add changes
git push origin morphodo/TYPO3_4-7/4-7-13
// let jenkins do the regular pushes
su jenkins -c "cd /git remote update && git push git@github.com:michaelklapper/TYPO3.CMS.git"
@michaelklapper
Copy link
Author

GIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment