I have a branch (mainbranch) which is recently derived from the master.
If a do a git pull origin otherbranch will that merge the branch otherbranch to the mainbranch derived from master?
Git merge can be used but curious to know what will the above statement do.
What i need is to merge otherbranch with main branch and megre is giving error
fatal: 'otherbranch' does not point to a commit
This command is equivalent to
And will therefore:
otherbranchfrom remoteorigin(its head commit is temporarily saved inFETCH_HEAD).origin/otherbranch(which is now inFETCH_HEAD) into the currently checked out branch.