When working with Git, there will come the point where you want to pull the content of another branch into your branch, e.g. pulling the remote master into your local feature branch. In this article, you will learn how pulling from another branch into your current branch works and how to specify the source and the target branch for the pull command.
It might happen that you create commits on the wrong local branch. However, it is still possible to push to another remote branch than the remote tracking branch of your current branch. In this article, you will learn how to use the Git push command to push to a different remote branch than the one you made your commits on.