4
I have a repository on Github and I created a Github page for that repository. So, every time I make changes to the branch master
, I need to get into the branch gh-pages
, make a git merge master
and send to the appropriate branch.
There are ways to automate this task, for every time I make one git push origin master
already send all changes to the branch gh-pages
?
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 push that to run this automation there on Github, which should be something like:
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master
I don’t know if there’s any way to improve these 4 steps above, but that’s what I wouldn’t want to do every time I push.
Quick doubt - why you want to do this?
– Rodrigo Rigotti
So I don’t have to make a change whenever I have to do the whole process, one day I can forget and break pq’s head a change isn’t appearing.
– Marcelo Diniz