Skip to content

Commit 86fa1d6

Browse files
Yogi-The-CuriousCS107E BOT
authored andcommitted
Merge branch 'master' of github.com:cs107e/mango-staff
commit 46082c60cedee8d39691ae7c6f44480c31d9484a Author: Yogi-The-Curious <[email protected]> Date: Sat Nov 16 19:35:29 2024 -0800 Merge branch 'master' of github.com:cs107e/mango-staff
1 parent e04225e commit 86fa1d6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

guides/cs107e-git.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,21 @@ was successful by browsing your repo on GitHub and
143143
confirming that your newly created tag shows up in the __Tags__ section of the branches
144144
dropdown menu.
145145

146+
#### Adding a tag to a speicfic commit
147+
If you say mispelled a tag, forgot to tag, or otherwise need to go back and add a tag to an older commit here is how.
148+
149+
First you will need to find the commit hash of the tag you want. The commit hash is the really long sequence of letters and numbers next to each commit.
150+
Note you only need to copy the first seven or eight characters of the hash. To see a list of all your commits and their associated hashes run:
151+
```console
152+
$ git log
153+
```
154+
155+
From there to add a tag to this commit you can run:
156+
```console
157+
$ git tag assignX-submit [paste hash here and remove brackets]
158+
$ git push --tags
159+
```
160+
146161
<A name="resubmit"></a>
147162
#### Move tag for resubmit
148163
If you need to update your previously tagged submission with additional changes, you can move the tag to a different commit with the following command

0 commit comments

Comments
 (0)