Last active
December 17, 2015 10:28
-
-
Save cburgdorf/5594447 to your computer and use it in GitHub Desktop.
special tag
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
| git checkout master | |
| git checkout temp | |
| ...jetzt alle files so organisieren wie sie seien sollen | |
| git add -A | |
| git commit -m "foo" | |
| git tag foo | |
| git branch -D temp | |
| Im Prinzip ähnlich wie bei einer gh-pages branch. Da möchte man ja in der Regel nur den output aus dem dist verzeichnis auf der rooteben haben. | |
| Da macht man z.B. | |
| git checkout gh-pages | |
| git reset --hard master | |
| Dann alle files und directories auf der root eben löschen (bis auf .git und dist). | |
| Dann alles aus dem dist Verzeichnis auf die root eben verschieben. | |
| Anschließend das leere dist Verzeichnis auch noch löschen | |
| git add -A | |
| git commit -m "Release" | |
| git push -f origin gh-pages | |
| Oder einfach meinen grunt task benutzen ;-) | |
| https://github.com/cburgdorf/grunt-release-branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment