将整个项目复制到git中

时间:2013-01-16 14:05:21

标签: xcode git

我在我的电脑上安装了git并建立了一个存储库。如何将我的整个xcode项目复制到git中?我可以手动将文件复制到branches文件夹吗?

1 个答案:

答案 0 :(得分:3)

只需将文件复制到该目录,然后执行以下操作:

git add .
git commit -m "Initial commit"

或者......只需使用git init在您的项目中创建您的存储库。