码迷,mamicode.com
首页 > 其他好文 > 详细

git01

时间:2015-12-02 10:32:36      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

1.创建一个远程仓库

git init --bare

2.项目经理创建项目

2.1 克隆远程仓库

 git clone /Users/lan/Desktop/git

2.2 设置.gitignore

echo -e "" > .gitignore

"# Xcode
> #
> # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
>
> ## Build generated
> build/
> DerivedData
>
> ## Various settings
> *.pbxuser
> !default.pbxuser
-bash: !default.pbxuser: event not found
> *.mode1v3
> !default.mode1v3
-bash: !default.mode1v3: event not found
> *.mode2v3
> !default.mode2v3
-bash: !default.mode2v3: event not found
> *.perspectivev3
> !default.perspectivev3
-bash: !default.perspectivev3: event not found
> xcuserdata
>
> ## Other
> *.xccheckout
> *.moved-aside
> *.xcuserstate
> *.xcscmblueprint
>
> ## Obj-C/Swift specific
> *.hmap
> *.ipa
>
> # CocoaPods
> #
> # We recommend against adding the Pods directory to your .gitignore. However
> # you should judge for yourself, the pros and cons are mentioned at:
> # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
> #
> # Pods/
>
> # Carthage
> #
> # Add this line if you want to avoid checking in source code from Carthage dependencies.
> # Carthage/Checkouts
>
> Carthage/Build
>
> # fastlane
> #
> # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
> # screenshots whenever they are needed.
> # For more information about the recommended setup visit:
> # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md
>
> fastlane/report.xml
> fastlane/screenshots" > .gitignore

 

git01

标签:

原文地址:http://www.cnblogs.com/zep908323412/p/5012175.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!