Re: [git-users] Re: Is it possible to revert the commit in a particular (individual) branch
> From: Vasily Makarov > > 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. Dale -- 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.
[git-users] Re: Is it possible to revert the commit in a particular (individual) branch
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? On Friday, November 7, 2014 5:44:24 PM UTC+3, Rajamanikandan S wrote: > > 1) I have a develop branch. With that i have created two branches, branch > 1 and branch 2. > 2) Making changes in both the newly created branches (1 & 2) > 3) Wrongly i merged the branch 1 code in develop. > > Is it possible to revert that particular commit from develop ? and start > continue working on branches (1 & 2) > -- 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.