关于github仓库

fork仓库

项目clone下来时,push时提示以下错误时

Pushing to https://github.com/仓库名/LetterIndexViewDemo.git
2018-01-06 14:53:37.008 git-credential-sourcetree[30495:14600422] Error (internetKeychainItemForServer:withUsername:path:port:protocol:) - The specified item could not be found in the keychain.
remote: Permission to 仓库名/LetterIndexViewDemo.git denied to concerned123.
fatal: unable to access 'https://github.com/仓库名/LetterIndexViewDemo.git/': The requested URL returned error: 403

解决办法:
找到项目中的隐藏文件夹.git下面的config文件


关于github仓库_第1张图片
项目路径

原本文件中的内容如下:


关于github仓库_第2张图片
config文件

将url修改为:


关于github仓库_第3张图片
修改后

给已有github仓库创建LICENSE文件

点击create new file


关于github仓库_第4张图片
自己的仓库

输入LICENSE.md ,右边会出现 "choose a license template" 按钮 ,并且点击此按钮


LICENSE.md

左边是已有的license ,选择你想要添加的license后点击 "Review and submit"


关于github仓库_第5张图片
选择license

选择提交到master分支就完成了


关于github仓库_第6张图片
提交

你可能感兴趣的:(关于github仓库)