mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Add help message that explains how to revert a bad release tagging to the release.sh script.
This commit is contained in:
parent
84ad80f575
commit
6c90970e17
17
release.sh
17
release.sh
@ -18,6 +18,23 @@ This script updates the hardcoded versions in the source code and README and
|
||||
then commits them on the current branch. It then tags that commit with the
|
||||
specified version.
|
||||
|
||||
If you run this script in error, or with the wrong version, you can undo the
|
||||
changes by finding the original state in the list of actions listed in the
|
||||
reflog:
|
||||
|
||||
git reflog
|
||||
|
||||
Then revert to the original state by running `git checkout` with the reference
|
||||
previous to the release tagging changes:
|
||||
|
||||
git checkout HEAD@{21}
|
||||
|
||||
Then checkout the original branch again:
|
||||
|
||||
git checkout master
|
||||
|
||||
You are back to the original state!
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user