It will be a bit different with ClearCase, because you can only rebase a baseline produced on the parent Stream (although you can deliver any baseline from any Stream to your Stream).
So there are some limitations to the kind of merge you do with ClearCase.
With Git, you can merge any commit to the HEAD
of your current branch.
If that commit comes from a remote repo, it will be first imported in the remote branches of your local repo ('fetch
' part of the git pull
) and then merged.
git pull [options] [<repository> [<refspec>…]]
The "refspec
" part of the git pull command means you can pull anything.
<refspec>
can name an arbitrary remote ref (for example, the name of a tag) or even a collection of refs with corresponding remote tracking branches (e.g., refs/heads/:refs/remotes/origin/
), but usually it is the name of a branch in the remote repository.
See also How to pull remote branch with specified commit id?