I'm trying to figure out Xcode's Source Control feature for local, non-remote, git work, and I'm confused by the process of reverting back to old commits.
Say my project has a single branch, main
. And say my project has a number of commits. I decide I want to revert the project back to the initial commit. I go into the Source Control Navigator, I right-click the initial commit and I select New Branch from...
. I now have two branches, main
and initial-commit-branch
. I switch back to main
, and right-click the new branch and select Merge initial-commit-branch into main branch
. I get an error that says "the repository already contains all changes". What am I missing here?