ruby -v html
gem sources --remove https://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l (用来检查使用替换镜像位置成功)android
ritekiMac-mini:~ lucky$ sudo gem install cocoapods ios
加target:target
'DecorationBus'
do
github
mac svn:cornerstonesegmentfault
深刻理解学习Git工做流(git-workflow-tutorial) good服务器
CocoaPods安装和使用及问题:Setting up CocoaPods master repo good架构
全部的项目的Podspec文件都托管在https://github.com/CocoaPods/Specs。第一次执行pod setup时,CocoaPods会将这些podspec索引文件更新到本地的 ~/.cocoapods/目录下,这个索引文件比较大,有80M左右。因此第一次更新时很是慢,笔者就更新了将近1个小时才完成。
有人在gitcafe(转移到coding.net上了)和oschina上创建了CocoaPods索引库的镜像,由于gitcafe和oschina都是国内的服务器,因此在执行索引更新操做时,会快不少。以下操做能够将CocoaPods设置成使用gitcafe镜像:
第一步:删除master
:~ $ pod repo remove master;
wangzhaoludeMacBook-Pro:~ wangzhaolu$ pod repo remove master;
Removing spec repo `master`
第二步:将以上代码中的 https://gitcafe.com/akuandev/Specs.git 替换成 http://git.oschina.net/akuandev/Specs.git 便可使用oschina上的镜像。
:~$ pod repo add master https://gitcafe.com/akuandev/Specs.git;
wangzhaoludeMacBook-Pro:~ wangzhaolu$ pod repo add master https://gitcafe.com/akuandev/Specs.git; Cloning spec repo `master` from `https://gitcafe.com/akuandev/Specs.git` fatal: destination path 'master' already exists and is not an empty directory. wangzhaoludeMacBook-Pro:~ wangzhaolu$
第三步: 更新
:~ $ pod repo update;
wangzhaoludeMacBook-Pro:~ wangzhaolu$ pod repo update;
1.git clone https://gitcafe.com/akuandev/Specs.git ~/.cocoapods/repo/master //过时
2.pod install --verbose --no-repo-update
git clone
https://git.coding.net/akuandev/Specs.git ~/.cocoapods/repo/master //用ssh方法
添加公钥,登录
git clone ~/.cocoapods/repo/master //用ssh方法
ssh -T git@git.oschina.net
git clone https://git.oschina.net/akuandev/Specs.git ~/.cocoapods/reop/master
当在update或install时遇到这个问题:
只须要把当前Pod的目录清理一下就好了。在终端执行如下命令: setup成功后执行install或update便可。大标题 ====
中标题 -------
Export和Check Out,区别在于,Export后的项目不会与repository中的源文件相关联,是一个独立的版本,而Check Out下来的文件会建立一个working copy,
能够直接拖动到repository的子文件夹中,或是选择软件上方的Import按钮上传,会弹出选项填写所在位置及名称,而后选择Import便可
svn方便了多人开发同一项目的代码合并问题,可是也有一些事项须要注意:
提交时新增长的文件显示为问号状态的,请选中右击后 选择Add to Working Copy以后再commit
trunk 主线 git rebase,顾名思义,就是从新定义(re)起点(base)的做用,即从新定义分支的版本库状态。
rm -rf .git
git init
git add . 这样,当前目录全部的内容就被添加到源里面去了
git commit -m "first commit"