git的使用

1.xcode 安装好了git  ,我们直接拿来用就行

2.在桌面创建一个文件夹,然后把自己的项目拖进去,在终端进行 初始化$ git init

3,忽略文件,$ touch .gitignore          $  open .gitignore      拷入下面文件

# Xcode.DS_Store

build/

*.pbxuser!default.pbxuser*.mode1v3

!default.mode1v3

*.mode2v3

!default.mode2v3

*.perspectivev3

!default.perspectivev3#*.xcworkspace#!default.xcworkspacexcuserdata

profile

*.moved-aside

DerivedData.idea/

*.xcuserstate# Pods - for those of you who use CocoaPods#Pods

这样忽略文件就已经做好了

4,$ git add .  //上传文件

5,$ git status

你可能感兴趣的:(git的使用)