[Git] How To Rollback To A Specific Version?

git revert HEAD
將目前版本v2,返回上一次的版本v1
git revert 2a73943
意思就是,回到2a73943這個hash的上一個版本

--

--

There are a thousand Angels in a thousand people's eyes. 一千個人有一千個Angel.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Angel@Software Engineer

There are a thousand Angels in a thousand people's eyes. 一千個人有一千個Angel.