8000 GitHub - shortmoose/getversion: Checkout git commits based on semantic versioning.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

shortmoose/getversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getversion

go.dev reference Go Report Card Releases LICENSE

This tool is designed to help bridge the gap between which version of a repository is needed and which version of the repository best matches that need. For example if you want version 1.1 of a repository, that likely means you want the latest version of the 1.1 branch of the repository, not necessarily version 1.1.0.

This tool assumes projects are using Semantic Versioning which is a structured way of creating version numbers.

Usage

# Download and install the tool.
# Hey look - go get also uses semantic versioning!
go get -u github.com/shortmoose/getversion@v0

# Clone the repository. 
git clone https://github.com/<repo>

# Use getversion to checkout the correct state of the repository.
getversion <repo>@v1.1

# At some point in the future we would like to improve the workflow
# so getversion can also do the clone.
# For example: getversion github.com/<repo>@v1.1

Note that this tool often leaves the repository in a disconnected state. This is okay since when using getversion we are normally not planning to modify the given repository, we are just wanting to use it.

About

Checkout git commits based on semantic versioning.

Topics

Resources

License

Stars

Watchers

Forks

0