I have a repository in Github and I have created a page in Github for this repository. With this, whenever I make changes in the master
branch, I need to enter the gh-pages
branch, make a git merge master
and send to the appropriate branch.
Can you automate this task, whenever I make a git push origin master
already send all changes to the gh-pages
branch?
Come on, basically the steps I do are:
git add . // para adicionar todos arquivos
git commit -m "traduzido tais arquivos"
git push origin master // sei que é bom fazer um pull antes
And when I do this push, then run that automation there in Github, which should be something like:
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master
I do not know if you can improve these 4 steps above, but that's what I would not like to do every time I push.