
git
文章平均质量分 91
沉迷现实无法自拔
这个作者很懒,什么都没留下…
展开
-
centos安装git源码包
从github下载源码包:https://github.com/git/git解压源码包cd /usr/local/src/git-mastermake prefix=/usr/local allmake prefix=/usr/local install如果报这个错误: make: * [git-credential-store] 错误 1 解决办法:cd /usr/local/src原创 2016-09-23 21:41:08 · 1287 阅读 · 0 评论 -
git-ssh 配置和使用
1、设置Git的user name和email:(如果是第一次的话)git config --global user.name "humingx"git config --global user.email "humingx@yeah.net"2、生成密钥ssh-keygen -t rsa -C "humingx@yeah.net"连续3个回车。如果不需要密码的话。 最后得到了两个文件:id_r原创 2017-05-11 15:15:11 · 235 阅读 · 0 评论 -
git代码行统计命令集
查看git上个人代码量git log --author="username" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc转载 2017-04-15 09:19:19 · 880 阅读 · 0 评论 -
GIT实现自动拉取代码(可实现自动部署)
一、利用crontab定时任务编辑用户的定时任务: crontab -e在用户定时任务文件里写入定时命令 每过1分钟执行后面的命令 : */1 * * * * cd /home/wwwroot/default/GIT/autoload;/usr/local/bin/git pullcd /home/wwwroot/default/GIT/autoload 表示进入到git项目目录/usr原创 2017-05-12 13:48:21 · 16552 阅读 · 0 评论 -
GIT
clone远程仓库: git clone [url] 将add和commit合为一步: git commit -am ‘xxx’获取远程分支master并merge到当前分支: git pull origin master将当前分支push到远程master分支: git push origin master增加一个仓库: git remote add 别名 仓库地址更改git地址: g原创 2016-08-09 16:49:15 · 491 阅读 · 0 评论 -
docker[git,composer,nginx,php,mysql,centos ]
git1、拉取镜像docker pull alpine/git2、用法单独使用docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git alpine/git [--version | status | pull | push...]# 实例,查看版本docker run -ti --rm -v ${HOME}:/root -v $(...原创 2019-05-12 16:56:57 · 474 阅读 · 0 评论