請問一下, 怎麼在xcode底下把project check in 到git server上.
小弟第一次使用git. 我知道xcode可以在local create repositories. 但是怎麼不知道怎麼跟git server sync.
希望有大大可以教導一下.
感激
ckkc wrote:
請問一下, 怎麼在x...(恕刪)
我不會用xcode但我會用git, 這樣可以回覆你嗎 ...? 因為我只會用command喔!!
開terminal切到專案目錄,
#cd ${Project_dir}
#git status
看有沒有修改但未進入stage的檔案, 或是untracked的檔案
若有修改但未stage的檔案, 使用
#git add ${modified_file_name}
再簡單一點就是直接
#git add -a
#git commit -m "commit message"
或是
#git commit -a
你所說的check-in在git中稱為push, 說明文件
#man git-push
細節用法有很多, 請參考說明文件, 簡單點的就是
#git push git://host.xz[:port]/~[user]/path/to/repo.git ${branch_name}
由於你提到你是第一次使用git, 但從你表達的方式來看, 你的觀念應該還是centralize的version control
強烈建議你先搞懂git的觀念
內文搜尋

X