如何在Xcode中设置SCM?

ope*_*rog 6 iphone xcode

我知道Xcode可以连接到SCM.但我怎么从头开始设置呢?如何在设置后检出/提交文件?