Last active
December 17, 2015 04:18
-
-
Save ryanseys/5549172 to your computer and use it in GitHub Desktop.
Sync master & gh-pages by adding these 2 lines in your .git/config file
This file contains 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
[remote "origin"] | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
url = git@github.com:user/repo.git | |
# add the following 2 lines so $ git push pushes to both master & gh-pages | |
push = +refs/heads/master:refs/heads/gh-pages | |
push = +refs/heads/master:refs/heads/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment