Tracking Remote Branches With Different Names

Learn how to track remote branches that have different names from local branches.

We'll cover the following

Tracking a branch

More rarely, you may want to track a branch on the remote repository that has a different name. Or you may want to manually mark the local branch as tracking a specific remote one.

In these situations, you might see this kind of error when you push:

1	git push

Get hands-on with 1400+ tech skills courses.