Skip to content

Commit

Permalink
Add create a branch from a tag instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfitzsimmons committed Jul 12, 2024
1 parent b052e34 commit 31d0ff6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions sphinx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
9 changes: 9 additions & 0 deletions sphinx/misc/branch_from_tag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Create a branch from a tagged release

1. Go to the tagged releases (<https://github.com/specify/specify7/tags|tags>) for Specify 7
2. Navigate directly to the last commit linked from the tagged release directly by clicking on the commit hash: (<https://github.com/specify/specify7/commit/a991a42658c83e626f3631326895cbe5ebe4edc4>) 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!

0 comments on commit 31d0ff6

Please sign in to comment.