From 31d0ff6d95e9386ddfe0244b6a9da98559014031 Mon Sep 17 00:00:00 2001 From: grantfitzsimmons <37256050+grantfitzsimmons@users.noreply.github.com> Date: Fri, 12 Jul 2024 18:02:25 -0500 Subject: [PATCH] Add create a branch from a tag instructions --- sphinx/index.rst | 1 + sphinx/misc/branch_from_tag.md | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 sphinx/misc/branch_from_tag.md diff --git a/sphinx/index.rst b/sphinx/index.rst index 50d1a5e..2eb39b6 100644 --- a/sphinx/index.rst +++ b/sphinx/index.rst @@ -56,6 +56,7 @@ Welcome to Specify Developer documentation! misc/specify7_ecs_most-in-one misc/useful_bash_cmds misc/vs_code_django_unit_test_debugging_notes + misc/branch_from_tag diff --git a/sphinx/misc/branch_from_tag.md b/sphinx/misc/branch_from_tag.md new file mode 100644 index 0000000..c07f2cf --- /dev/null +++ b/sphinx/misc/branch_from_tag.md @@ -0,0 +1,9 @@ +## Create a branch from a tagged release + +1. Go to the tagged releases () for Specify 7 +2. Navigate directly to the last commit linked from the tagged release directly by clicking on the commit hash: () From here, copy the last component (full commit hash) from the URL (after /commit/) +3. Open Terminal and went to the `specify7` dir +4. Run `git checkout a991a42658c83e626f3631326895cbe5ebe4edc4` (replacing `a991a42658c83e626f3631326895cbe5ebe4edc4` with the exact commit hash copied in step 2) +5. Create a new branch: `git checkout -b 7961` (the branch name is arbitrary, in this case it is 7961) +6. Push it to GitHub: `git push -u origin 7961` +7. Now you have a new branch based on a tagged release! \ No newline at end of file