fatal: The current branch master has no upstream branch. To push the current

2018-06-13

git本地仓库push远程仓库的时候,报了异常:fatal the current branch master has no upstream branch


原因是远程仓库创建时候要建立一个README文件,然后再进行push操作。因为这个文件是远程仓库主分支所必须的