1) 调出终端,cd到项目位置,如cd Documents/xxx
2) git init
3) git add . (千万不要少打.号)
4) git commit -m "Initial commit"
如果系统中安装了多个xcode:
打开xcode->preference->location->Comman Line TOoLs
修改为当前使用的Xcode版本,不然上面配置不上。
1) 调出终端,cd到项目位置,如cd Documents/xxx
2) git init
3) git add . (千万不要少打.号)
4) git commit -m "Initial commit"
如果系统中安装了多个xcode:
打开xcode->preference->location->Comman Line TOoLs
修改为当前使用的Xcode版本,不然上面配置不上。