在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:markchalloner/git-semver开源软件地址:https://github.com/markchalloner/git-semver开源编程语言:Shell 100.0%开源软件介绍:Git Semantic VersioningTable Of ContentsIntroductionA git plugin to make adherance to Semantic Versioning 2.0.0 easier, with its own plugin architecture for optional version management of:
See PLUGINS.md for a description of plugins. Semantic versioningSemantic Versioning 2.0.0 is a scheme for versioning, which includes 3 parts e.g.
InstallationVia git clone. (git clone https://github.com/markchalloner/git-semver.git && sudo git-semver/install.sh) The installer installs git-semver into the first of the following directories that exist and are in the path:
In Linux, OSX and Windows Cygwin the installer will create a symlink. In Windows MinGW creates a stub instead. The installer will not overwrite any existing configuration or plugins. UsageGet highest version taggit semver get Will return empty if no version has been created. Create a new version tagVersions are created as tags and are generated using: git semver [major|minor|patch|next|pre-release|build] [--dryrun] [-p <pre-release>] [-b <build>] To see what a tag would be without actually creating it, run a dryrun with
MajorIncrement the major component (0.1.0 -> 1.0.0), optionally adding a pre-release version and build metadata. git semver major [-p <pre-release>] [-b <build>] If no version has been created, the initial version will be: 1.0.0[-][+] MinorIncrement the minor component (0.1.0 -> 0.2.0), optionally adding a pre-release version and build metadata. git semver minor [-p <pre-release>] [-b <build>] If no version has been created, the initial version will be: 0.1.0[-][+] Patch (Next)Increment the patch component (0.1.0 -> 0.1.1), optionally adding a pre-release version and build metadata. git semver patch|next [-p <pre-release>] [-b <build>] If no version has been created, the initial version will be: 0.1.0[-][+] Pre-releaseCreate a new pre-release version based on the next patch version if a release version exists (0.1.0 -> 0.1.1-) or the current patch version (0.1.0-alpha -> 0.1.0-) if it does not, optionally adding build metadata. git semver pre-release -p <pre-release> [-b <build>] If no version has been created, the initial version will be: 0.1.0-[+] BuildCreate a new build based on the current patch version. git semver build -b <build> If no version has been created, the initial version will be: 0.1.0+ HelpRun git semver with no arguments to see usage git semver [help] ConfigurationGit-semver will check for a configuration file in the following locations (and use the one that exists):
Git-semver will default to An example configuration file with the default settings can be found at config.example. UpdatesUpdates can be done using git. Change to the cloned directory and run a git pull:
UninstallationAutomaticallyVia uninstaller in clone directory. Navigate to your original clone directory and run: sudo git-semver/uninstall.sh [-p|--purge] The purge switch will additionally remove the configuration directory. Manuallygit-semver is installed by placing a symlink/stub in one of the bin directories in the path.
It can be deleted easily: sudo rm $(which git-semver) The configuration directory can be removed with: rm -rf ${HOME}/.git-semver ChangelogPlease see CHANGELOG.md for more information what has changed recently. ContributingPlease see CONTRIBUTING.md for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论