commit hook Git帮我们自动调整代码格式
四个空格代替tab键
多使用智能指针来分配内存,不要自己管理内存
unique_ptr
shared_ptr
++i的执行效率比i++的效率高
为什么要用移动语义?
下面是 .gitconfig文件
[include]
path = /env/PC/include/gitconfig
path = k:/include/gitconfig
[scmcheck]
pcgitsetuprev = 2
[user]
name = Quanhua Piao
email = quanhua.piao@cienet.com.cn
[alias]
alias = !git config --global --list | grep ^alias
br = branch
ci = commit
co = checkout
head = rev-list -n1 --abbrev-commit HEAD
hist = log --graph --format=format:\"%C(red)%h%C(reset) %C(yellow)%ad%C(reset) | %s %C(green)\\[%an\\]%C(reset)%C(bold blue)%d%C(reset)\" --abbrev-commit --date=short
root = rev-parse --show-toplevel
st = status
[color "branch"]
upstream = magenta
#[diff]
# guitool = rhp
#[merge]
# tool = bcompare
#[mergetool]
# bcompare = trustExitCode
# prompt = false
# trustexitcode = false
#[mergetool "bcompare"]
# cmd = bcompare \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[diff]
tool = bc3
[difftool "bc3"]
# cmd = /usr/bin/bcompare \"$LOCAL\" \"$REMOTE\"
# cmd = \"$LOCAL\" \"$REMOTE\"
cmd = bcompare \"$LOCAL\" \"$REMOTE\"
[merge]
tool = bc3
[difftool]
prompt = false
bc3 = trustExitCode
[mergetool "bc3"]
# cmd = /usr/bin/bcompare \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
cmd =bcompare \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
#--------for Creating FT Number
[url "ssh://eselnvlx1264.mo.sw.ericsson.se:29418/"]
insteadof = selngerrit-test:
[url "ssh://selngerrit-test.mo.sw.ericsson.se:29418/"]
pushinsteadof = selngerrit-test
[mergetool]
bc3 = trustExitCode