本地项目推送到git仓库

推送:

https://blog.csdn.net/weixin_40861707/article/details/89853149

push时报

$ git push origin master
Fatal: HttpRequestException encountered.
Username for 'https://github.com': syb666
To https://github.com/syb666/Django-admin.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/syb666/Django-admin.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

 错误解决办法:

https://blog.csdn.net/henusyb/article/details/89385386

原文地址:https://www.cnblogs.com/keketoloveme/p/14600785.html