mac系统下 git 命令push 报权限错误(remote: Permission to .git denied to user.)

 解决步骤哦依次如下:打开Finder ----> 应用程序 ---->实用工具 ---->钥匙串访问

mac系统下 git 命令push 报权限错误(remote: Permission to .git denied to user.)_第1张图片mac系统下 git 命令push 报权限错误(remote: Permission to .git denied to user.)_第2张图片

---->双击,即可进入到钥匙串访问记录保存页面,右键删除即可

 

重新执行push操作

 git: git push origin master  

pod: pod repo push repoSpacName   xxx.podspec --allow-warnings

之后就会提示你数据用户密码,如下:

Validating spec

 ->xxxxxxx (1.0)

    - NOTE  | xcodebuild:  note: Using new build system

    - NOTE  | [iOS] xcodebuild:  note: Planning build

    - NOTE  | [iOS] xcodebuild:  note: Constructing build description

    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file. (in target 'App')

Updating the `repoSpacName' repo

Already up to date.

Adding the spec to the `repoSpacName' repo

 - [No change] xxxxxxx (1.0)

Pushing the `repoSpacName' repo

Username for 'https://github.com': xxxxx

Password for 'https://[email protected]': ***********

 

你可能感兴趣的:(IOS,开发工具)