So basically it looks like this:
I want to discard the commit called, but it is in master branch:
6e228be
Main.storyboard screen fix.
And make the Xcode7 branch new master, or merge without the above commit. How do I do it ?
You should be able to checkout master and reset off the tip commit, then fast forward merge the xcode7 branch.
git checkout master
git reset --hard HEAD~
git merge Xcode7
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.