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

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

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

 

重新执行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://xxxxxx@github.com': ***********

 

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值