基础命令 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 # 用户设置 git config --global user.name "Your Name" git config --global user.em ...
分类:
其他好文 时间:
2019-06-20 23:59:25
阅读次数:
271
1. 一般而言,按照提示执行以下两个命令即可生成新的Change-id - gitdir=$(git rev-parse --git-dir); scp -p -P 29418 guan@192.168.84.22:hooks/commit-msg ${gitdir}/hooks/ - git co ...
分类:
其他好文 时间:
2019-03-15 01:05:35
阅读次数:
699
hg和git命令对照表 来源 https://github.com/sympy/sympy/wiki/Git-hg-rosetta-stone Git hg rosetta stone Git hg rosetta stone muxator edited this page on 10 Mar 2 ...
分类:
其他好文 时间:
2018-12-29 01:11:27
阅读次数:
361
[Pipeline] { (Checkout) [Pipeline] checkout > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > g ...
分类:
其他好文 时间:
2018-11-06 11:57:35
阅读次数:
1375
git学习 >git-rev-parse命令初识 git学习 >git-rev-parse命令初识 2017年06月13日 10:04:13 阅读数:2172 2017年06月13日 10:04:13 阅读数:2172 阅读数:2172 一、准备工作 第一步:在d盘git test目录下,新建工作区 ...
分类:
其他好文 时间:
2018-06-19 13:37:49
阅读次数:
185
比如我想把git代码的commitid获取以后加到文件夹上来标记文件夹中的包是哪个git 节点构建得到的。 git 命令是git rev-parse --short HEAD 再linux系统下,只需要执行下面的命令: commitid=`git rev-parse --short HEAD` ec ...
分类:
其他好文 时间:
2018-06-15 17:52:31
阅读次数:
521
回退到分支某个版本 git reset --hard c88173be7b521fcbe88c5be4fc1d3889e52226ae(要回退的分支版本号) 查看分支当前版本 git rev-parse HEAD 提交回退的版本 git push -f (注:强制提交后,当前版本后面的提交版本将会删 ...
分类:
其他好文 时间:
2018-05-04 17:00:47
阅读次数:
176
本节内容 agent功能 1.1 agent上报数据 1.2 agent与HBS同步 1.3 agent Http服务 agent源码分析 2.1 初始化config配置 2.2 初始化根目录,本地IP和rpc连接池 big mapper 2.3 定时同步各种数据 2.4 HTTP服务 agent设 ...
分类:
其他好文 时间:
2017-10-29 12:56:10
阅读次数:
277
版本:git rev-parse--git-dir显示Git版本库的位置 --show-cdup显示当前工作区目录的深度 --parseopt解析命令行参数$ git rev-parse --symbolic --branches 显示分支$ git rev-parse --symbolic --....
分类:
其他好文 时间:
2015-12-31 19:13:37
阅读次数:
180
1、创建目录:/a/b/c[root@centos demo]# mkdir -p a/b/c2、显示版本库.git目录所在的位置[root@centos c]# git rev-parse --git-dir/path/to/my/workspace/demo/.git3、显示工作区根目录:[ro...
分类:
其他好文 时间:
2015-02-05 13:03:42
阅读次数:
244