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