Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ahmadshobirin/9b1a4637cd150b1d01fa2bde7ecd9de6 to your computer and use it in GitHub Desktop.

Select an option

Save ahmadshobirin/9b1a4637cd150b1d01fa2bde7ecd9de6 to your computer and use it in GitHub Desktop.

Revisions

  1. ahmadshobirin renamed this gist Mar 4, 2021. 1 changed file with 0 additions and 0 deletions.
  2. ahmadshobirin renamed this gist Mar 4, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. ahmadshobirin created this gist Mar 4, 2021.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ### Revert the full commit


    ## Move to branch target ex: master

    git checkout {branch}

    ## Get commit id from the repo or git log and reseted

    git reset --hard {commit_id}

    ## Last, push with update forced

    git push origin -f