Skip to content

Instantly share code, notes, and snippets.

@teocci
Created April 1, 2022 02:35
Show Gist options
  • Save teocci/2423ab8fccbb8647693bc91b54ac6fd4 to your computer and use it in GitHub Desktop.
Save teocci/2423ab8fccbb8647693bc91b54ac6fd4 to your computer and use it in GitHub Desktop.
  1. Commit all changes
git commit -am "changes"
Output
[main 3235010] Add Goodbye method
 1 file changed, 4 insertions(+)
  1. Push changes
git push
Output
numerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 369 bytes | 369.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/teocci/go-stream-av.git
   d0bccd6..aee3616  main -> main
  1. To publish a new version
git tag v1.0.0
git push origin v1.0.0
Output
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/teocci/go-stream-av.git
 * [new tag]         v0.0.0 -> v1.0.0
  1. Update package's index
go list -m github.com/teocci/go-stream-av@v1.0.0
Output
github.com/teocci/go-stream-av v1.1.4
  • Using browser: Just open this url https://pkg.go.dev/<package namespace>
Example:
https://pkg.go.dev/github.com/teocci/go-stream-av@v1.1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment