如何為 Xcode 項目設置 Git 存儲庫? (How to set up a Git repository for an Xcode project?)


問題描述

如何為 Xcode 項目設置 Git 存儲庫? (How to set up a Git repository for an Xcode project?)

Possible Duplicate: How to quickly set up Git for teams using Xcode?

I have an Xcode project folder on my Mac HD. Snow Leopard. The GitX GUI expects that I already have an Git repository. So I guess since I have GitX installed, I also have Git, and now I need to be cool and intelligent and know what to hack into the Terminal. But what? Is there any tutorial that explains this in minutes, not hours or even days?


參考解法

方法 1:

just git init in that folder

this is a 20 minute git link

and this is a every day most needed commands

and this is the community book for further reading

this SO post will help you also

方法 2:

See this:

http://www.kernel.org/pub/software/scm/git/docs/user‑manual.html#creating‑a‑new‑repository

Basically, go into the root of your project and type:

$ git init
$ git add .
$ git commit

(And note the . ad the end of the git add . command.)

(by Proud MemberAhmed KotbBen Lee)

參考文件

  1. How to set up a Git repository for an Xcode project? (CC BY‑SA 2.5/3.0/4.0)

#repository #Git






相關問題

開發代碼時如何使用 Internet Subversion 存儲庫? (How to use an Internet Subversion respository when developing code?)

在線庫報告的錯誤 (Online repository for reported bugs)

如何在Subversion儲存庫歷史記錄中查找文件? (How Do I Find a File in a Subversion Repository History?)

如何從 Nexus Professional 遷移到 Nexus OSS (How to migrate from Nexus Professional to Nexus OSS)

如何查看存儲庫? (How to see repositories?)

將遠程 github 存儲庫中的更改合併到本地存儲庫 (Merge changes from remote github repository to your local repository)

如何為 Xcode 項目設置 Git 存儲庫? (How to set up a Git repository for an Xcode project?)

如何簽入從不同存儲庫簽出的代碼 (How to check in code which is checked out from different repository)

如何使 Hg/Git 成為遠程倉庫? (How to make Hg/Git a remote repo?)

繼承是一種“is-a”關係;總結“界面”關係的好方法是什麼?——總結其他關係? (inheritance is an 'is-a' relationship; What is a good way to summarize the 'interface' relationship? -- Summarizing other relationships?)

存儲庫模式問題 (Repository Pattern Question)

為 Mac 和 Windows 設置 React Native 代碼庫 (setting up react native code repository for Mac & Windows)







留言討論