0
I have an old project that was written in Laravel 5.3, recently rewrote all the code using the version 5.5.
My question is how to organize this in Github, currently the master branch supports my project based on Laravel 5.3, locally I have the project rewritten in version 5.5
As a solution I thought about migrating version 5.3 to another branch and going 5.5 to master, however, I don’t know if this is how it works. If this is the way, how can I perform these steps?
Yes. That’s the way. Move the code with version 5.3 to another
branch
. For this use the command:git checkout -b 5.3
and thengit checkout master
to return to thebranch
main. There you can already overwrite with the new files.Faça o backup de tudo antes.
– Valdeir Psr
@Valdeirpsr after this action there would suffice a push?
– Fábio Jânio
Exactly. Then just run
git push origin master
to updatebranch
principal orgit push origin 5.3
to update thebranch
previous.– Valdeir Psr
I understood this part, however I have the following doubt: currently I have in 1 directory version 5.3 and in another version 5.5, I keep working in separate directories or after this push I should move the content of 5.5 > the directory where is 5.3?
– Fábio Jânio