git

线上新建一个git server,如github,gitee等。本地端,已经有部分代码了,需要直接将这些代码添加到git server里面。

$ 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

需要使用

git push -u origin master

你可能感兴趣的:(git)