It was when I was developing a flea market app as a team at a programming school.
I want to bring the master branch information to the branch I'm currently working on ...
I will introduce the solution in such a case this time.
All you have to do is enter the following four commands in the terminal! !!
As a point to note before executing the command, if there is a file being edited, commit and push it once to leave it empty.
<!--Move from developing branch to master branch-->
$ git checkout master
<!--Reflect remote master-->
$ git pull origin master
<!--Move from master branch to branch under development-->
$git checkout Branch name under development
<!--Bring the contents of maser into the branch under development-->
$ git merge origin master
You should now have your master branch information reflected in your working branch! !!
Thank you for reading the article to the end! !!
Hope it helps: pray_tone2:
Recommended Posts