When using "Push to upstream…" in Eclipse, the new "local" commits are pushed to remote repository and the remote branch ref is updated in the local repository (so
origin/master reference the same commit).
When using "Push…" and adding a push ref on master in the wizard window (
refs/heads/*), the new "local" commits are pushed to remote repository (like previously) but the remote branch ref is not updated in the local repository (so
master reference the last commit but
origin/master didn't moved).
What's the difference between these two ways of working? Is it useful for particular decentralized work flows?
What would be the corresponding git commands of these two approaches?