Add new remote
Command:
bash git add remote <name> <url>
Example:
bash git remote add cloud [email protected]:lnoering/leon-m2.git
You need make the fetch to the remote after add.
Command:
bash git fetch <remote_name>
Example:
bash git fetch cloud
Get the branch from new remote.
Command:
bash git checkout -b <branch_name> <remote_name/branch_name>
Example:
bash git checkout -b cloud/staging-ded cloud/staging-ded
Push to the new remote.
Command:
bash git push <remote> <local_branch_name:remote_branch_name>
Example:
bash git push cloud cloud/staging-ded:staging-ded