git发邮件
来源:互联网 发布:房屋框架设计软件 编辑:程序博客网 时间:2024/05/01 18:59
1.发单个patch
git status 检查状态
git commit 提交修改,提交了之后才能format-patch
git format-patch -1 -s
vim 0001-A-test-patch.patch add some comment
git send-email 0001-A-test-patch.patch --to abc@126.com --cc 123@126.com
2.发patch set
1043 git format-patch -2 -s --cover
1044 vim 0000-cover-letter.patch
1046 vim 0001-Move-the-definition-of-struct-mapped_device-and-stru.patch
1052 vim 0002-Add-the-new-interface-for-multipath-to-limit-the-tim.patch
1054 mkdir send-patch
1055 mv 000* send-patch/
1056 git send-email send-patch/ --to abc@126.com
1062 git send-email send-patch/ --to abc@126.com --cc def@126.com
方法一:
[root@yuxh linux-2.6]# cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git://10.167.225.115/git/linux-2.6/.git
[branch "master"]
remote = origin
merge = refs/heads/master
[user]
name = Bc A
email = abc@126.com
[sendemail]
smtpserver = 邮件服务器URL
smtpuser = 邮件服务器用户名:abc@126.com
smtpserverport = 25
[root@yuxh linux-2.6]#
方法二:
配置两个文件 ~/.gitconfig ~/.msmtprc
#cat ~/.gitconfig
[user]
email = abc@126.com
name = Bc A
[color]
ui = true
[sendemail]
#smtpencryption = tls
smtpserver = /usr/bin/msmtp
smtpuser = abc@126.com
#cat ~/.msmtprc
defaults
logfile ~/.msmtp.log
#gmail
account abc
protocol smtp
host 邮件服务器url
from abc@126.com
user abc@126.com
password abc
port 25
auth login
#tls on
#tls_trust_file /etc/ssl/certs/ca-certificates.crt
syslog LOG_MAIL
# Set a default account
account default : abc
0 0
- git发邮件
- GIT自动发邮件功能配置
- Windows环境下 Git 实现发邮件功能
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- 发邮件
- mac There are no interface on Which a capture can be done
- 10大基础实用算法
- CSS3伪类nth-of-type(n)用法详解
- QML元素介绍
- SEO优化要以“大局为重”
- git发邮件
- linux下mnt目录作用
- 75_leetcode_Covert Sorted List to Binary Tree
- jquery对ajax的支持
- Hive学习之函数DDL和Show、Describe语句
- C标准IO缓存长度限制0124
- www.douban.com/note/360845135/
- 加载、滑动翻阅大量图片解决方案详解
- silverlight combobox 在使用 ItemsSource 之前,项集合必须为空