Pagi ini dimulai dengan rekan yang ngereport bawah tanpa sengaja pushing untested local commits ke branch master remote repository dan minta tolong untuk me-reset-kan ke latest stable commits.

Well lets skip bagaimana habits successful branching model bla bla bla, its not the point of this post.

    git fetch
    git checkout [branch]
    git log -l [num]
    git reset --hard [commit_hash]
    git clean -f -x -d
    git push --force origin [branch]

Thast it! thanks git.

© 2015 Komang. All Rights Reserved.

Made with in Kuta, Bali, Indonesia

Proudly published with Hugo