> How does one roll back to a previous commit when using a Git repo and in > Xcode?
Does it have to be from within Xcode? At the command line it is a simple one line command: "git reset <commit>" or "git reset --hard <commit>”. Without the --hard option your working directory is left alone. Everything done since <commit> is thrown away and <commit> becomes the new head. Don’t think I’ve ever used it. If you just want to undo some changes use git revert. It adds a new commit that is the inverse of the commit you are reverting so you have complete history. However, if you want to revert your tree to a version that is many commits old you have to revert each commit since. Marc _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to [email protected]
