TRY AND ERROR

気になったこと、勉強したこと、その他雑記など色々メモしていきます。。Sometimes these posts will be written in English.,

Rollback Atom's "Synchronize Settings" to specific revision.

Assume you use "Synchronize Settings", the package of Atom Editor for synchronizing settings between multiple environments, and have taken a backup by mistake, you're able to rollback by following way faster than reverting each files with editing.

Clone your gist into your local.

$ git clone [your gist repo url]

Check git logs and get specific commitID you want to rollback to.

$ git log
commit xxxxxxxxxxxxx

Rollback your local branch to commitID.

$ git reset --hard xxxxxxxxxxxxx

Once delete remote master.

$ git push origin :master

Push your rollbacked local commit to remote master.

$ git push origin master

That's all.