git release功能
命令行:
git tag -a v3. -m "这是4.0版本"
git push origin v3.
//git tag -a 标签名称 -m "说明"
//git push origin 标签名称
删除tag
git tag -d v1. //删除本地tag git push origin :v1.//删除远程tag
//也可以这样
git push origin --delete tag V1.
以上命令在项目仓库创建了一个v3.0的release,如下图:

1.进入到项目仓库,选择release选项卡,可以点击create a new release/Draft a new release创建一个新的release.

2.未勾选This is a pre-release通过github官方提供的api可访问我们的release信息,格式如下:
/repos/:owner/:repo/releases/:id
更多API说明访问:https://developer.github.com/v3/repos/releases/
例:访问https://api.github.com/repos/kingBook/testGit/releases/latest可以获取如下信息
{
"url": "https://api.github.com/repos/kingBook/testGit/releases/9028810",
"assets_url": "https://api.github.com/repos/kingBook/testGit/releases/9028810/assets",
"upload_url": "https://uploads.github.com/repos/kingBook/testGit/releases/9028810/assets{?name,label}",
"html_url": "https://github.com/kingBook/testGit/releases/tag/2.0",
"id": 9028810,
"tag_name": "2.0",
"target_commitish": "master",
"name": "testGit v2.0",
"draft": false,
"author": {
"login": "kingBook",
"id": 4969180,
"avatar_url": "https://avatars3.githubusercontent.com/u/4969180?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kingBook",
"html_url": "https://github.com/kingBook",
"followers_url": "https://api.github.com/users/kingBook/followers",
"following_url": "https://api.github.com/users/kingBook/following{/other_user}",
"gists_url": "https://api.github.com/users/kingBook/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kingBook/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kingBook/subscriptions",
"organizations_url": "https://api.github.com/users/kingBook/orgs",
"repos_url": "https://api.github.com/users/kingBook/repos",
"events_url": "https://api.github.com/users/kingBook/events{/privacy}",
"received_events_url": "https://api.github.com/users/kingBook/received_events",
"type": "User",
"site_admin": false
},
"prerelease": false,
"created_at": "2017-05-03T08:34:10Z",
"published_at": "2017-12-26T06:01:54Z",
"assets": [
],
"tarball_url": "https://api.github.com/repos/kingBook/testGit/tarball/2.0",
"zipball_url": "https://api.github.com/repos/kingBook/testGit/zipball/2.0",
"body": "这是第二个版本"
}
git release功能的更多相关文章
- Git是什么、Git的功能、为什么versioncontrol用Git、Git的常用命令、Git的优缺点
Git是什么 git是目前世界上最先进的分布式版本控制系统(没有之一). Git是用于 Linux内核开发的版本控制工具.与常用的版本控制工具 CVS, Subversion 等不同,它采用了分布式版 ...
- SVN和Git的功能和区别,尚学堂SVN和Git学习视频资料免费下载
对于软件开发人员来说,版本控制系统再熟悉不过了,所谓版本控制系统就是软件项目开发过程中用于储存开发人员所写代码所有修订版本的软件.目前常见的版本控制系统分为集中式版本控制系统(SVN)和分布式版本控制 ...
- git stash功能的使用
一,git stash的作用: 能够将所有未提交的修改(工作区和暂存区)保存至堆栈中,用于后续恢复当前工作目录 说明:架构森林是一个专注架构的博客,地址:https://www.cnblogs.com ...
- 有了Git这个功能,再也不需要依赖IDE了!
大家好,今天给大家介绍一个隐藏的功能--搜索. 我们在写代码的时候经常遇到的一种情况就是,我们想要知道某一个函数是怎么定义的,这样我们才能知道该如何调用它.如果代码少的话我们当然可以自己人肉查找,但是 ...
- git: 常用功能等
1. an very useful simple git guide link: http://rogerdudler.github.io/git-guide/index.zh.html
- 如何使用 Android Studio 的 git hub 功能
How to use GitHub with Android Studio This article will explain how to use GitHub with Android Studi ...
- Git:常用功能 - 命令行
1. 正在某个分支进行开发,突然有个紧急BUG需要切换到其他分支进行修复? git add README.md # 将文件添加到暂存区 git stash save "v1.0.0 in d ...
- Git常用功能记录
1. git查看某个文件的修改历史 git log --pretty 然后使用下面的命令可列出文件的所有改动历史,注意,这里着眼于具体的一个文件,而不是git库,如果是库,那改动可多了去了- git ...
- tortoise git常用功能
1.打tag TortoiseGit -> show log -> 选中版本 -> create tag at this version... TortoiseGit -> p ...
随机推荐
- Python3 文件的重命名
在Python3中我们要实现将本地文件homework.txt中的内容的修改操作时,大体的思路是这样的:先将homework.txt文件的内容读取到内存中,在内存中对里面的数据进行修改,接着将修改完成 ...
- [UE4]使用UFUNCTION注意事项
#pragma once #include "CoreMinimal.h" #include "Blueprint/UserWidget.h" #include ...
- 如何优雅地等待所有的goroutine退出
转自:https://www.cnblogs.com/cobbliu/p/4461866.html goroutine和channel是Go语言非常棒的特色,它们提供了一种非常轻便易用的并发能力.但是 ...
- pandas函数get_dummies的坑
转载:https://blog.csdn.net/mvpboss1004/article/details/79188190 pandas中的get_dummies得到的one-hot编码数据类型是ui ...
- Kafka参数详解
一.相关参数配置 System 系统参数 #唯一标识在集群中的ID,要求是正数. broker.id=0 #服务端口,默认9092 port=9092 #监听地址,不设为所有地址 host.name= ...
- Devlopment Env Setup install ubuntu16.04
http://blog.csdn.net/ljheee/article/details/52966048 1.add chinese language support settings -> i ...
- (转)深入sql server中的事务
原文地址:http://www.cnblogs.com/chnking/archive/2007/05/27/761209.html 参考文章:http://www.cnblogs.com/zhuif ...
- 1449 - The user specified as a definer ('test'@'%') does not exist
最近在做一个项目,由于服务器切换,所以需要将原有服务器的mysql数据表以及存储过程导入到另一个服务器的mysql数据库中.导入完成之后以为一切是那么的简单,却没有想到总还是出现了一些莫名其妙的问题. ...
- spring启动找不到spring.liveBeansView.mbeanDomain配置
做项目时,启动tomcat报错 JNDI lookup for name [spring.liveBeansView.mbeanDomain] threw NamingException with m ...
- PYTHON语言书库
<SELENIUM 2 自动化测试实战 基于PYTHON语言>pdf 附下载链接 本书下载链接:https://pan.baidu.com/s/1A1s6UHecXd1Z465zbLumh ...