xcode,git tips

  • change organization name

选中project or target,最右侧Utilities面板->Project Document

  • 修改source folder名字

--

   -ProjectA.xcodeproj

   -ProjectA

右侧Utilities面板修改ProjectA to ProjectB.

左侧选择ProjectA文件夹,右侧Utilities面板修改location下的文件夹为ProjcetB(预先copy ProjectA to ProjectB)

同时修改plist路径,选中target->Identify-> choose the Plist. 否则会报错找不到plist.

 

  • 删除git仓库
    find . -name ".git" | xargs rm -Rf
  • 新建git 仓库

               $ git init     

               $ git add .    

               $ git commit    

 

  • xcode missing file warnings

file: warning: Missing file:  is missing from working copy

cd "project folder path"
git add .
restart project

  • 本地暂时不想提交,只update某个目录:

$ git fetch

remote: Counting objects: 22, done

remote: Finding sources: 100% (14/14)

remote: Getting sizes: 100% (11/11)

remote: Total 14 (delta 10), reused 14 (delta 10)

Unpacking objects: 100% (14/14), done.

From http:

   be275eb..6b44278  master     -> origin/master

$ git checkout -m 6b44278 xx/tracker/

  • pull submodule

git submodule init

git submodule update

转载于:https://www.cnblogs.com/mlj318/p/6596173.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值