Git & GitHub · Lesson 120 of 144
Project: Version 1.0
Tag and release.
The site is ready for the world. Let's mark this moment with a version tag, and publish it.

- Ready for the world
- Tag version 1.0
- Publish it
Tag and push
We create an annotated tag, v one point oh, with a message. Push the tag to GitHub. Then the log shows the tag right next to our latest commit, the merged pull request.
git
git tag -a v1.0 -m "First public version" git push origin v1.0 To https://github.com/sam/portfolio.git * [new tag] v1.0 -> v1.0 git log --oneline -n 2 b454a24 (HEAD -> main, tag: v1.0, origin/main) Merge pull request #1 from sam/feature/projects 71aa11e Link to projects page
What you just did
Look at what you did in this project. Created a repository. Ignored junk. Committed in small steps. Used a feature branch and a pull request. Tidied up. And tagged a release. That's a professional workflow. On GitHub, you could now turn on Pages, and create a release from the tag.
Repositoryinit, .gitignore
Workflowbranch, PR, merge
Tidydelete, prune
Releasetag v1.0
Summary
A tag marks the release, and the workflow you used is the same one professional teams use. Next, a project with a teammate.
Key takeaways- git tag -a v1.0
- git push origin v1.0
- A professional workflow
Next up: Project: Working with a Teammate — two people, one repository