Re: How to revert commit in git?
- From: Ihar Hrachyshka <ihar hrachyshka gmail com>
- To: gnome-i18n gnome org
- Subject: Re: How to revert commit in git?
- Date: Thu, 15 Sep 2011 14:04:22 +0300
On 09/15/2011 02:01 PM, Daniel Mustieles García wrote:
> Hi all,
>
> By mistake, I've pushed a wrong file to git. I wanted to update
> gtranslator/help/es.po, but I've modified (and pushed) po/es.po.
>
> Now, I dont know hot to revert this commit, in order to get the previous
> po/es.po file.
>
> Could you please help me?
>
> Many thanks ando sorry for the incovenience
>
Hi,
'git revert commit-hash-to-revert ; git push' will do the job.
See:
http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html
/Ihar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]