acer vn7 591g 51ss-591g 75vl能再查一根内存条吗

github - Permission to CocoaPods/Specs.git denied - Stack Overflow
Join the Stack Overflow Community
Stack Overflow is a community of 6.8 million programmers, just like you, helping each other.
J it only takes a minute:
Currently getting the following error when I'm trying to do a push.
git:(swift3) git push --set-upstream origin swift3
remote: Permission to CocoaPods/Specs.git denied to paul301.
fatal: unable to access '/CocoaPods/Specs.git/': The requested URL returned error: 403
This all started when I moved from .36 to version 1.0.1
I've tried reinstalling CocoaPods, removing all the CocoaPods files in the project (worksapce, podfile, pod folder, podfile.lock) and doing a fresh 'pod init', clearing CocoaPods caches and a number of other things.
It seems like its trying to push my commits to the Specs repo. I've been noticing "pod install" has been changing my git repot to point to the specs repo:
My Podfile:
platform :ios, '9.0'
target 'Test' do
use_frameworks!
pod 'Moya', '8.0.0-beta.2'
pod 'iCarousel'
pod 'ObjectMapper', '~& 2.0'
pod 'Alamofire', '~& 4.0'
pod 'FacebookCore'
pod 'FacebookLogin'
I have the same bug I just change to cocoa pod to 1.0.1...
basically your origin have been changed to /CocoaPods/Specs.git
you can check with:
git:(new_version) git remote -vv
/CocoaPods/Specs.git (fetch)
/CocoaPods/Specs.git (push)
you can change this either through terminal or modify the file manually
git remote set-url origin /PSEUDO/NAME_OF_YOUR_GIT.git
or, go into .git\config file and change
[remote "origin"]
url = /PSEUDO/NAME_OF_YOUR_GIT.git
fetch = +refs/heads/*:refs/remotes/origin/*
[remote "origin"]
url = /PSEUDO/NAME_OF_YOUR_GIT.git
fetch = +refs/heads/*:refs/remotes/origin/*
1,57011419
So it turns out "pod install" actually did change my git. As can be seen in my git config the url was changed to , which I changed back to point to my git repo and all was fixed
.git git: cd .git
.git git: cat config
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = /CocoaPods/Specs.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
rev .25396
Stack Overflow works best with JavaScript enabledGit简单总结 - 推酷
Git简单总结
这篇文章分为两部分,一是搭建git服务器,二是git命令,主要是记录了一下我搭建git服务器流程和用到的相关命令。
一、Mac环境下搭建Git服务器
这里简单说一下Mac环境下通过git+ssh搭建服务器的流程。
1、打开远程登陆
系统偏好设置 -& 共享 -& 远程登陆
2、添加git用户
这一步不加上也可以,但是为了更好的管理和安全着想,最好加上一个git用户系统偏好设置 -& 用户与群组 -& 添加名为git的用户
3、初始化一个空仓库
在git用户目录下创建一个repos文件夹专门用来管理仓库
$ mkdir repos
$ cd repos
# 初始化一个空仓库
$ git init --bare test.git
4、添加密钥
在git服务端添加客户端的公钥后,以后git访问不需要密码了,下面是客户端与服务端的操作。
ssh-keygen
命令生成密钥,执行完后会生成
id_rsa.pub
两个文件,其中
id_rsa.pub
是公钥。客户端将
id_rsa.pub
文件交给git服务端就行了。
将客户端的
id_rsa.pub
中的内容放到
/Users/git/.ssh/authorized_keys
文件中。主要,客户端每个公钥占用独立的一行,有时复制会出现问题,可以使用
cat id_rsa.pub && /Users/git/.ssh/authorized_keys
5、客户端使用
到这一步,我们的git服务环境其实已经搭建好了,下面来使用。首先,我们需要知道服务端的用户和git项目的路径
/Users/git/repos
这里用户是git,路径是
/Users/git/repos/test.git
下面,我们就可以在客户端clone项目了。这里因为我是在本机测试,所以用的是localhost,一般都是用
服务器的ip或者域名
$ git clone user@localhost:/Users/user/repos/test.git
Cloning into 'test'...
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
这里就说明服务器已经搭建好了。
遇到问题(这里是我在linux系统搭建时遇到的问题):
remote: error: insufficient permission for adding an object to repository database ./objects
权限的问题,查看服务器对应的仓库的父文件夹是否属于git用户,git是否拥有可写权限
linux系统搭建git服务器,请参考
二、Git命令
1、下面是git操作的简单流程,里面的命令都是经常用到的
#克隆某个仓库的代码
git clone /chunguiLiu/TestLCGCocoapods.git
#进入TestLCGCocoapods,添加文件
cd TestLCGCocoapods
echo &test& & test.txt
git add test.txt
#提交文件,并添加日志为'add test.txt file'
git commit -m 'add test.txt file'
#推送到远程服务器
git push origin master
#修改文件,并推送到服务器
echo 'add test' && test.txt
git add -update
git commit -m 'update file'
git push origin master
#打上版本号,其中-m参数后面是日志,'0.1.0'是版本号
git tag -m 'first tag' '0.1.0'
#将版本号推送到服务器
git push --tags
2、分支是git中一个很强大的功能,这里列出我曾经使用过的相关分支命令,也许你会用到,想了解更多分支的知识请进入
#创建test分支
git branch test
#切换到test分支
git checkout test
#比较master和test两个分支
git diff master test
#查看当前分支
git branch
git branch -d test
#删除远程服务器的分支
git push --delete origin testBranch
3、查看git某个版本的内容 当我添加Cocoapods私有库的时候,想查看从pod某个版本下来的内容与我对应版本内容是否相同,这个时候,我怎么操作git?
其实,git克隆下来的内容拥有所有版本内容,我们如果想查看某个tag版本的内容,可以使用
git checkout tag-version
命令,将这个版本当做一个分支来查看,只是这个时候它只是一个快照,我们不能修改代码。
#跳转到0.0.1版本
git checkout 0.0.1
如果我们想修改这个版本的内容时,那么我们可以通过创建一个新的分支,这个新的分支是以某个tag版本为准,可以在新的分支下修改代码
#以0.0.1版本创建一个分支newBranch
git checkout -b newBranch 0.0.1
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
主题不准确
没有分页内容
图片无法显示
视频无法显示
与原文不一致介绍:iOS开发中,大多数情况下,我们都需要集成一些第三方依赖库,对于一个稍大的项目,用到的第三方依赖库的数量也非常可观。CocoaPods是objective-c第三方库管理工具,方便第三方库的管理。用法:1. 安装$ sudo gem install cocoapods 2. 用法
在iOS项目目录下新建Podfile 文件,添加第三方依赖库,如 source '/CocoaPods/Specs.git'platform :ios, '8.0'pod 'AFNetworking', '~& 2.0'pod 'ARAnalytics', '~& 2.7'如何查找第三方库呢,比如我要找MKNetworkKit, 在终端运行命令pod search MKNetworkKit我们可以在Podfile文件中添加pod 'MKNetworkKit', '~& 0.87'直接添加pod 'MKNetworkKit'自动加载最新库,建议使用一个稳定版本号,如果最新依赖库修改方法或者不稳定,你的项目就运行不了,除非你需要最新的依赖库特性。cd到Podfile目录下,运行pod install如果需要更新依赖库,运行pod update3. 运行在项目目录下,打开 (项目名称).xcworkspace到这里,第三方依赖库自动加载到项目中了,good luck!4. 项目提交到git在.gitignore文件中添加# podPods/ 这样就忽略了依赖库,精简git库。其他人只需把依赖库更新到本地就可以了。 参考: 1. http://cocoapods.org/
iOS 极光推送集成打印You&#3
最新教程周点击榜
微信扫一扫

我要回帖

更多关于 vn7 591g 的文章

 

随机推荐