Assume I have the following git history
L1 - L2 - L3 <- Local branch
/ \
A - B - C -- D -- E -- M <- master
where L1, L2, and L3 are commits on my local branch and M is the merge commit into master.
Now, when I push my changes to remote, will the commits in the local branch be part of the history or not? In other words, will the history in the remote repository look like the graph above or just like
A - B - C - D - E - M <- master
Also: What happens in the case of fast-forward merges?