我已按照以下说明上传项目.
全球设置:
Download and install Git
git config --global user.name "Your Name"
git config --global user.email tirenga@gmail.com
Add your public key
Next steps:
mkdir tirengarfio
cd tirengarfio
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:tirenga/tirenga.git
git push origin master
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:
权限被拒绝(publickey).致命:远程端意外挂断
最近,我被添加为Github项目的成员/贡献者.我已经在本地机器上克隆了该项目.
我已经做了一些更改并在本地提交,现在尝试将更改推送到原始仓库但是当我尝试推送时,我得到一些权限错误?
C:\Users\MM\Documents\GitHub\software-licensing-php [master]> git push
origin master
remote: Permission to EasySoftwareLicensing/software-licensing-php.git denied to
irfandayan.
fatal: unable to access 'https://github.com/EasySoftwareLicensing/software-licen
sing-php.git/': The requested URL returned error: 403
C:\Users\MM\Documents\GitHub\software-licensing-php [master]> git statu
s
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
# (use "git push" to publish your local commits)
#
nothing to commit, working directory clean
Run Code Online (Sandbox Code Playgroud)
我是否缺乏推动变更的许可,所以我可以问项目的原作者?