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


    1.新建项目

     2.添加Git仓库

     添加自己的gitHub账号.

     3.Token获取方式:

     Settings.

     Developer Settings.

     获取个人Token.

     填写相关内容.

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

     填写相关信息.

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

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

    1. # Xcode
    2. #
    3. # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
    4. ## User settings
    5. xcuserdata/
    6. ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
    7. *.xcscmblueprint
    8. *.xccheckout
    9. ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
    10. build/
    11. DerivedData/
    12. *.moved-aside
    13. *.pbxuser
    14. !default.pbxuser
    15. *.mode1v3
    16. !default.mode1v3
    17. *.mode2v3
    18. !default.mode2v3
    19. *.perspectivev3
    20. !default.perspectivev3
    21. ## Obj-C/Swift specific
    22. *.hmap
    23. ## App packaging
    24. *.ipa
    25. *.dSYM.zip
    26. *.dSYM
    27. ## Playgrounds
    28. timeline.xctimeline
    29. playground.xcworkspace
    30. # Swift Package Manager
    31. #
    32. # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
    33. # Packages/
    34. # Package.pins
    35. # Package.resolved
    36. # *.xcodeproj
    37. #
    38. # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
    39. # hence it is not needed unless you have added a package configuration file to your project
    40. # .swiftpm
    41. .build/
    42. # CocoaPods
    43. #
    44. # We recommend against adding the Pods directory to your .gitignore. However
    45. # you should judge for yourself, the pros and cons are mentioned at:
    46. # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
    47. #
    48. # Pods/
    49. #
    50. # Add this line if you want to avoid checking in source code from the Xcode workspace
    51. # *.xcworkspace
    52. # Carthage
    53. #
    54. # Add this line if you want to avoid checking in source code from Carthage dependencies.
    55. # Carthage/Checkouts
    56. Carthage/Build/
    57. # Accio dependency management
    58. Dependencies/
    59. .accio/
    60. # fastlane
    61. #
    62. # It is recommended to not store the screenshots in the git repo.
    63. # Instead, use fastlane to re-generate the screenshots whenever they are needed.
    64. # For more information about the recommended setup visit:
    65. # https://docs.fastlane.tools/best-practices/source-control/#source-control
    66. fastlane/report.xml
    67. fastlane/Preview.html
    68. fastlane/screenshots/**/*.png
    69. fastlane/test_output
    70. # Code Injection
    71. #
    72. # After new code Injection tools there's a generated folder /iOSInjectionProject
    73. # https://github.com/johnno1962/injectionforxcode
    74. iOSInjectionProject/

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

     进行一次提交.

     查看发现提交成功.

  • 相关阅读:
    15 分钟带你感受 CSS :has() 选择器的强大
    数据挖掘算法原理与实践:数据预处理
    使用Linux远程连接OpenGauss数据库的步骤和方法
    chatglm2微调—ptuning
    最近5年133个Java面试问题列表
    数商云SCM系统订单收货场景介绍,探索采购新模式,提升汽车服务企业运营水平
    JAVA智能外包管理平台计算机毕业设计Mybatis+系统+数据库+调试部署
    设计模式学习(十九):访问者模式
    java中类加载与双亲委派机制
    本、硕、博区别真的辣么大吗?
  • 原文地址:https://blog.csdn.net/LYly_B/article/details/132973874