> From: Vasily Makarov <einmal...@gmail.com>
> It's not clear what the actual problem is.
> Git doesn't allow you to revert a commit you don't like?
> Or, maybe, you want to revert the merge commit?

Also, what does "revert" mean?

The "head of a branch" is simply a pointer (whose name is the branch
name) that points to a particular commit.  You can change that pointer
with "git branch -f branch-name commit-hash".  That will revert all
changes to the branch since that commit.

There are more complicated sorts of "revert" where you don't go back
to a previous commit, but instead remove some of the changes that have
been made in the branch.  These changes shows up in the Git history as
additional commits.


You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to