您的位置:首页 > 运维架构 > Linux

新建的一个学习linux kernel github

2014-05-14 20:39 260 查看


Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/supermanmwg/linuxKernel.git git push -u origin master


Push an existing repository from the command line

git remote add origin https://github.com/supermanmwg/linuxKernel.git git push -u origin master

在上传的过程遇到了github push错误The requested URL returned error: 403 Forbidden while accessing

解决方案:

vim .git/config

修改
[remote "origin"]
url = [code] https://github.com/supermanmwg/linuxKernel.git[/code] 为:
[remote "origin"]
url =
https://supermanmwg@github.com/supermanmwg/linuxKernel.git
然后重新[code]git push -u origin master
输入登录账号的密码即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: