向github上传项目遇到的坑

1、新建项目的时候不能选REABME,否则后面push的时候回出现一些问题

 2、产生的问题如下

To https://amc-msra.visualstudio.com/trading-algo/_git/real-trading
 ! [rejected]        master -> dev-gaochao (fetch first)
error: failed to push some refs to 'https://amc-msra.visualstudio.com/trading-algo/_git/real-trading'
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.

3、解决办法:
可以自己创建一个新的分支后再进行提交
如果是自己新创建的一个项目,一个最简单最直接的方法就是直接重新新建一个项目了
原文地址:https://www.cnblogs.com/Roxxane/p/13061978.html