To keep the changes from the commit you want to undo
$ git reset --soft HEAD^
To destroy the changes from the commit you want to undo
$ git reset --hard HEAD^
You can also say
To keep the changes from the commit you want to undo
$ git reset --soft HEAD^
To destroy the changes from the commit you want to undo
$ git reset --hard HEAD^
You can also say
| module.exports = { | |
| toBuddhistYear: (moment, format) => { | |
| var christianYear = moment.format('YYYY') | |
| var buddhishYear = (parseInt(christianYear) + 543).toString() | |
| return moment | |
| .format(format.replace('YYYY', buddhishYear).replace('YY', buddhishYear.substring(2, 4))) | |
| .replace(christianYear, buddhishYear) | |
| } | |
| } |