Visual studio 2022 and default git extension works flawlessly without even need for a single line of command.
Step 1: Go to git settings
Image may be NSFW.
Clik here to view.
Step 2: Add new origin pointing to different repository in git/azure
Image may be NSFW.
Clik here to view.Image may be NSFW.
Clik here to view.
Step 3: Now you have option to push to new origin in different repository in git/azure
Image may be NSFW.
Clik here to view.
Now there is a new branch in new repositoryImage may be NSFW.
Clik here to view.