susheng

116 经验值

markdown一下

$ git push origin feature/pr
Username for 'https://github.com': xxx
Password for '[email protected]@github.com':
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 301 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local objects.
To https://github.com/xxx/xxx
 ! [remote rejected] feature/pr -> feature/pr (permission denied)
error: failed to push some refs to 'https://github.com/xxx/xxx'

问下为什么推送新分支的时候出问题了?
$ git push origin feature/pr
Username for 'https://github.com': xxx
Password for 'xxxx@github.com':
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 301 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local objects.
To https://github.com/xxx/xxx
! [remote rejected] feature/pr -> feature/pr (permission denied)
error: failed to push some refs to 'https://github.com/xxx/xxx'