git本地已有项目直接推到远程(用于本地初始化项目推到远程):
git config --global user.name "xxx"
git config --global user.email "123456@qq.com"
cd duoxiao-www
git init
如果没有这个初始化,那么就会报下面的错误:
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
git remote add origin https://gitee.com/qinhong_design/duoxiao-www.git
git add .
git commit -m 'init project'
git push -u origin master
