Reference
update
0.5 获取远程tag
#my_abc是tag号
git clone http://git.abc.net/git/abc.git
git checkout my_abc OR git checkout -b new_branch my_abc
update v2
获取远程tag or branch
code="java"]$ git ls-remote --heads origin
引用
5b3f7563ae1b4a7160fda7fe34240d40c5777dcd refs/heads/1-2-stable
71926912a127da29530520d435c83c48778ac2b2 refs/heads/2-0-stable
2b158543247a150e8ec568becf360e7376f8ab84 refs/heads/2-1-stable
b0792a3e7be88e3060af19bab01cd3d26d347e4c refs/heads/2-2-stable
d6b9f8410c990b3d68d1970f1461a1d385d098d7 refs/heads/3-0-unstable
f04346d8b999476113d5e5a30661e07899e3ff80 refs/tags/v0.13.3
git pull origin refs/tags/v0.13.3
git pull origin refs/heads/2-2-stable
创建
1. 本地创建tags
git tag -a v1.1 -m "new release"
1.5 查看本地tags
git tag -l
2. push到服务器端
git push --tags
2.2.1 创建和删除远程branch
git push origin head:newbranch_name
git push origin head:feature/newbranch_name
#删除远程分支,其它开发者要git branch -d -r 分支
git push origin :newbranch_name
2.3 删除本地tag
git tag -d v1.1
3. 删除服务器端远程tag
git push origin :refs/tags/v1.1
4. 查看远程服务器端
$ git remote show origin
引用
* remote origin
URL: git://github.com/rails/rails.git
Remote branch merged with 'git pull' while on branch master
master
Tracked remote branches
1-2-stable 2-0-stable 2-1-stable 2-2-stable 3-0-unstable master
$ git ls-remote --heads origin
引用
5b3f7563ae1b4a7160fda7fe34240d40c5777dcd refs/heads/1-2-stable
71926912a127da29530520d435c83c48778ac2b2 refs/heads/2-0-stable
2b158543247a150e8ec568becf360e7376f8ab84 refs/heads/2-1-stable
b0792a3e7be88e3060af19bab01cd3d26d347e4c refs/heads/2-2-stable
d6b9f8410c990b3d68d1970f1461a1d385d098d7 refs/heads/3-0-unstable
f04346d8b999476113d5e5a30661e07899e3ff80 refs/heads/master
给同行个
链接
分享到:
相关推荐
远程git标签从远程Git存储库获取标签安装 $ npm install remote-git-tags必须在您的安装git二进制文件。用法 const remoteGitTags = require ( 'remote-git-tags' ) ;( async ( ) => {console . log ( await ...
git-semver, 用于语义版本控制的Git插件 基于的Git语义目录简介安装工具插件插件保存...简介使adherance成为语义版本控制 2.0.0的git插件易于使用,它拥有自己的插件体系结构,用于可选的版本管理:保存变更日志文件
Leverage the power of Git to smooth out the development cycle Professional Git takes a professional approach to learning this massively popular software development tool, and provides an up-to-date ...
安装在 gemfile 中: gem 'cap-git-tags' , require : false 在你的Capfile 中: require 'capistrano/git-tags'用法当您部署到登台时系统会提示您输入刚刚更改的部署说明,由此创建一个暂存标记: # We replace all...
Git-2.21.0-64 for windows Git 2.23 Release Notes ====================== Updates since v2.22 ------------------- Backward compatibility note * The "--base" option of "format-patch" computed the ...
New Git users will learn the basic tasks needed to work with Git every day, including working with remote repositories, dealing with branches and tags, exploring the history, and fixing problems when...
git push origin –tags 推送本地所有新增标签到远端 ps:下面看下git命令之git tag 给当前分支打标签 列出标签 $ git tag # 在控制台打印出当前仓库的所有标签 $ git tag -l ‘v0.1.*’ # 搜索符合模式的标签 打...
2.5.6 远程仓库的删除和重命名 . . . . . . . . . . . . . . . . . . . 35 2.6 打标签 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 2.6.1 列显已有的标签 . . . . . . . . . . . . . . . . ....
基本提示 1. 安装之后第一步 安装 Git 之后,你要做的第一件事情就是去配置你的名字和...所有的分支指针保存在 .git/refs/heads 目录下,HEAD 在 .git/HEAD 目录下,标签在 .git/refs/tags 目录下 - 你可以随意看看。
maven git commit id plugin git-commit-id-plugin is a plugin quite similar to ...
目录入门重要提示:自 2.1.0 版以来, svn2git migrate不再svn2git migrate 。 要迁移具有标准布局的 subversion 存储库,您可以使用与git svn clone上可用的相同选项: $ bin/svn2git migrate [-A | --authors-...
这是一个围绕命令行git命令的薄包装器,用于在节点应用程序中使用。 它主要由博客系统使用,使正在运行的 node.JS 服务器能够从 git 存储库中读取文件,就像它们是本地文件一样。 示例用法 var sys = require ( '...
git-cleaner :scissors: CLI实用程序,用于批量清除分支和...在使用该实用程序之前,您需要同步git # Delete local tags git tag -l | xargs git tag -d # Fetch remote branches and tags git fetch 用法 Usage: g
这将在您的全局 git 配置中创建一个 git 别名。 usage: git relocate [options] <source>:<destination> [<source>:<destination>...] will clone all descendant commits of source(s) to destination(s). ...
时隔半年,强势回归!框架全部重构,8倍性能于ThinkPHP!遵守APACHE开源协议的便捷PHP框架,独特的模块化设计,使得框架简洁易懂。一行代码即可完成在线支付、发送短信、分页等功能,前所未有的简单和高效!
gitflow:在多阶段环境中使用标签进行git部署的Capistrano配方。 关于此食谱的最好之处在于,几乎没有什么要学习的,您的帽子部署过程几乎没有变化。 Gitflow只是添加了一些标记/日志记录/工作流魔术。 # BEFORE ...
git commit id插件与https://fisheye.codehaus.org/browse/mojo/tags/buildNumber-maven-plugin-1.0-beta-4非常相似,但是作为buildNumber,在我启动这个插件时,它只支持cvs和svn,必须做些什么。
生成一个保存git describe --tags值的全局变量。 变量名等于文件名。 同样在客户端上定义了一个具有相同名称的全局 UI 助手。用法创建一个文件AppVersion.version (可以为空)。 要在模板中显示应用程序版本,请...
git commit id插件与https://fisheye.codehaus.org/browse/mojo/tags/buildNumber-maven-plugin-1.0-beta-4非常相似,但是作为buildNumber,在我启动这个插件时,它只支持cvs和svn,必须做些什么。