Re: Is the f***ing NDA back, or why is no one talking about new stuff?
Re: Is the f***ing NDA back, or why is no one talking about new stuff?
- Subject: Re: Is the f***ing NDA back, or why is no one talking about new stuff?
- From: Marco S Hyman <email@hidden>
- Date: Wed, 10 Jun 2015 13:07:13 -0700
> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden