iOS开发实战-仿小红书App开发-1-App创建与Git

1.新建项目

iOS开发实战-仿小红书App开发-1-App创建与Git_第1张图片

iOS开发实战-仿小红书App开发-1-App创建与Git_第2张图片

iOS开发实战-仿小红书App开发-1-App创建与Git_第3张图片

 2.添加Git仓库

iOS开发实战-仿小红书App开发-1-App创建与Git_第4张图片

 添加自己的gitHub账号.

iOS开发实战-仿小红书App开发-1-App创建与Git_第5张图片

iOS开发实战-仿小红书App开发-1-App创建与Git_第6张图片

iOS开发实战-仿小红书App开发-1-App创建与Git_第7张图片

 3.Token获取方式:

 Settings.

iOS开发实战-仿小红书App开发-1-App创建与Git_第8张图片

 Developer Settings.

iOS开发实战-仿小红书App开发-1-App创建与Git_第9张图片

 获取个人Token.

iOS开发实战-仿小红书App开发-1-App创建与Git_第10张图片

 填写相关内容.

iOS开发实战-仿小红书App开发-1-App创建与Git_第11张图片

得到Token后复制它,拿到Xcode中登录.

iOS开发实战-仿小红书App开发-1-App创建与Git_第12张图片

 填写相关信息.

iOS开发实战-仿小红书App开发-1-App创建与Git_第13张图片

 创建后打开GitHub,查看自己的所有仓库,发现小粉书仓库已创建成功!

iOS开发实战-仿小红书App开发-1-App创建与Git_第14张图片

 4.创建名为.gitignore的文稿,将GitHub的.gitignore粘贴进去.

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# 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/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# 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://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

按下commond+shift+句号,显示隐藏的.gitignore文件,将它拖入Xcode中.

iOS开发实战-仿小红书App开发-1-App创建与Git_第15张图片

 进行一次提交.

iOS开发实战-仿小红书App开发-1-App创建与Git_第16张图片

iOS开发实战-仿小红书App开发-1-App创建与Git_第17张图片

 查看发现提交成功.

iOS开发实战-仿小红书App开发-1-App创建与Git_第18张图片

你可能感兴趣的:(ios,git)