如何用git命令行上传本地代码到github

如题所述

现在本地库上增加远程的链接:
git add origin https://github.com/username/git-repo.git
然后在推送分支:
git push origin master:master

origin 为远程名称, 可以随便取
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答