origin/branchX- This is a branch of remote tracking and receives updates from a remote repository every time you run git fetch. On the other hand, branchXis your local version of this thread. branchXmay not be synchronized with origin/branchX, which, in turn, may not be synchronized with what is actually located in the remote repository.
, branchX. branchX branchY, :
git fetch origin
git checkout branchY
git merge origin/branchX
branchX , :
git checkout branchX
git pull origin branchX
git checkout branchY
git merge branchX
branchX branchY, . , , , branchX , branchY. :
git checkout branchY
git merge branchX