0
I have several branches and doing two versions of a script, in separate branches on a development server. So how to update all branches, from clone, on production server?
0
I have several branches and doing two versions of a script, in separate branches on a development server. So how to update all branches, from clone, on production server?
1
I believe that you should merge them into one branch and then send this one to the repository. I may be talking nonsense so run a test on a copy first. Example : https://git-scm.com/book/pt-br/v2/Git-Branching-Basic-Branching-and-Merging
Browser other questions tagged git
You are not signed in. Login or sign up in order to post.
git pull --all does not resolve?
– epx
@epx I was in doubt between
git fetch --all --prune
andgit pull --all
, was expecting a more complete answer.– Márcio Mocellin
Yeah, so I put it as a comment, I’m not sure if it suits your particular use case.
– epx
@Márciomocellin If you expect the answer to present this difference, ask this question. You can [Edit] the question and add something like "I saw that there are these two commands ... what’s the difference?". However, this has already been answered in What’s the difference between git pull and git fetch commands'?
– Woss
I already found the answer: https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
– Márcio Mocellin