git lfs 问题#
- 客户端配置:
git config --system http.sslverify false
- 参考连接:https://blog.csdn.net/root_miss/article/details/81450687
gitlab邮箱配置#
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "gitlab@xxx.cn"
gitlab_rails['smtp_password'] = "xxx"
gitlab_rails['smtp_domain'] = "smtp.exmail.qq.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_ssl'] = false
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['gitlab_email_from'] = "gitlab@xxx.cn"
user["git_user_email"] = "gitlab@xxx.cn"
gitlab迁移#
gitlab-rake gitlab:backup:create
# 停止相关数据连接服务
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
# 从1393513186编号备份中恢复
gitlab-rake gitlab:backup:restore BACKUP=1393513186
# 启动Gitlab
gitlab-ctl start
submodule#
git submodule add https://github.com/yyy/xxx.git DESTPATH
- pull submodule: when git clone add parms –recursive
git clone https://github.com/xxx.git --recursive
- if you forget add –recursive
git submodule update --init
git submodule update --init --recursive
- update submodule
git submodule update --remote
- change branch
git config submodule.xxx.branch dev
or git config -f .gitmodules submodule.xxx.branch dev
gitconfig 常用配置#
[alias]
ch = checkou
st = status
staust = 'gitst'
cf = config
ck = checkout
ft = fetch
fh = fetch
br = branch
brv = branch --v
geturl = config --get remote.origin.url
bs = bisect
lg = log --graph --decorate --oneline --all
cfg = config --global
cfga = config --global alias.
pull = pl
pl = pull --rebase
cm = commit -c HEAD
ps = push
lsr = ls-remote --heads
udc = reset HEAD~
ftg = fetch --tags
am = commit -amend
cmd = commit --amend
rsh = reset HEAD~
cmi = commit --interactive -c HEAD --reset-author
i = --interactive
rss = reset --soft
rmc = rm --cached
cp = cherry-pick
cpx = cherry-pick -x
bl = blame
gk = gitk
ltn = ls-tree -r HEAD~ --name-only
lt = ls-tree -r HEAD~ --name-only
ltng = ls-tree -r HEAD~ --name-only |grep
lgd = log -p --full-diff
bcm = "branch -a --contains "
brc = branch -a --contains
tagc = tag --contains