//git remote rm <name>  移除分支
git remote rm origin
// git remote add <name> <url> 向远程添加分支
git remote add origin https://……/flyingft/…….git
// git push --set-upstream origin master 远程分支与本地分支合并
git push --set-upstream origin master
// git push <name> 上传
git push origin

其他问题

D:\ReactNativePro\XXX>git push --set-upstream origin master
To https://gitlab.XXXXXX.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://gitlab.XXXX.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解决

git pull origin master
git branch --set-upstream-to=origin/master master
git pull