在本地用git push拉取项目到远端gitlib报错

0 13121063943 3个月前 72次点击

image
在本地用git push拉取项目到远端gitlib报错,如下所示
$ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

 提示:git push --set-upstream origin master

经过各种百度后,已经把 origin和master 换上自己的,
git push --set-upstream git@IP:root/guns-cloud-parent1.git remotes/origin/master
运行后提示要输入密码,可是在git bash里不能输入密码!!!
请问有什么方法可以解决

共 1 条评论
13121063943 [楼主] 3个月前
0 

方法:
git pull origin master
git push -u origin master