git命令和npm命令bug修复(一)

用git branch list新建分支,然后运行git push报错:

fatal: The current branch list has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin list

修复:git branch新建分支是本地分支,线上并未新建分支,所以要在线上手动再新建分支,再执行以下命令:

git push -u origin list(分支名)

猜你喜欢

转载自blog.csdn.net/weixin_43804496/article/details/111771868