To use Git in iOS app development, please refer to the following steps:
Use the main branch to map the latest and best code corresponding to the version in the App Store;
For each new version, create a new version branch;
For each major feature, create a feature branch on the corresponding version branch;
When the feature development is complete, merge the feature branch into the corresponding version branch;
When submitting the app to the App Store, merge the corresponding version branch into the main branch;
When the app is approved, tag the main branch, this step is optional. These steps only take a few minutes to complete. By following this process, you can easily fix bugs on a version branch and merge code changes into the current working branch. For example, if Apple rejects your app, all you need to do is check out the main branch, fix the issues, resubmit to the App Store, then check out the current working branch and merge the code changes. With Git, the non-linear software development process becomes very easy. Give Git a try, you won't regret it. Learn more about it on the Best Practices for Git in iOS Development - Android Development - The Most Comprehensive Android Development Resources - eoe Mobile Developer Community.#
Corresponding Git commands:
On master#
git branch v1
git checkout v1
git branch v1-fun1
git checkout v1-fun1
Merge#
git checkout v1
git merge v1-fun1
git checkout master
git merge v1