Git pull to branch_1 and merge into the current branch at the same time

I looked around, but did not answer this exact question, so I go:

git checkout master
git checkout -b release1
git checkout -b feature1
git checkout -b feature2

I'm working on feature1, someone else is working on feature2, both are pushed to the beginning

git checkout -b feature1
git pull
git checkout -b feature2
git pull

Question 1: Can I extract the latest from the sources feature1and feature2into the corresponding local branches without checking them separately and pulling them separately?

Continuing.,.

git checkout release1
git merge feature1
git merge feature2

Someone else is working on feature2.

Question 2: I want to merge the last from the source feature2into the current branch release1without switching branches to pull it out and then switch again to merge it. Is it possible?

+3
source share
1 answer

( git), , (git pull) (git merge), , "destination".

+3

All Articles