How to change a local branch tracking to Different remote in Git
In this post we will give you information about How to change a local branch tracking to Different remote in Git. Hear we will give you detail about How to change a local branch tracking to Different remote in GitAnd how to use it also give you demo for it if it is necessary.
we will learn how to change a local branch tracking to a different remote in git.
Change tracking
We can change a local branch tracking to a new remote by using the git push command followed by -u flag and origin your-branch-name.
Example:
git push -u origin dev
dev is my local branch name.
The -u flag sets the upstream (tracking) reference to a remote branch.
Hope this code and post will helped you for implement How to change a local branch tracking to Different remote in Git. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs