步骤:
可能错误:
git 创建项目第一次上传文档出现fatal: No configured push destination. Either specify the URL from the command-line
解决办法:error: failed to push some refs to ‘https://github.com/xxxx.git’
解决git本地仓库与远程仓库关联出现 failed to push some refs to git的问题
git报错–>! remote rejected master -> master (push declined due to email privacy restrictions)
//先看步骤
git init
git add .
git commit -m "nothing"
//git push
/* error
fatal: No configured push destination
......
*/
git remote add origin 'https://github.com/...'
//git push -u origin master
/* error
......
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/...'
......
*/
git pull --rebase origin master
git push -u origin master
//success