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文件

原本文件中的内容如下:

将url修改为:

给已有github仓库创建LICENSE文件
点击create new file

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

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

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

网友评论