git config --global core.quotepath false
git config --global i18n.commitencoding utf-8git push origin HEAD:remote_branch_name
git push origin your_local_branch_name:remote_branch_namegit fetch
git fetch --prune
或简写
git fetch -p
git config --global fetch.prune true
[alias]
app = apply
apc = apply --check
br = branch
brr = branch -r
brv = branch -vv
brd = branch -D
brm = branch -m
bra = branch -a
bsut = "!f() { git branch $1 --set-upstream-to origin/$2; }; f"
sut = "!f() { git branch --set-upstream-to origin/$1; }; f"
bu = branch -u
s = status
cm = commit
cma = commit --amend
cmm = commit -m
ckb = checkout -b
ck = checkout
ckp = checkout -
df = diff
dfg = diff --staged
rt = restore
rtg = restore --staged
pl = pull
plo = pull origin dev
puo = pull origin dev:dev
plr = pull remote
ph = push
phf = push -f
phh = "!f() { git push origin HEAD:$1; }; f"
st = stash
stl = stash list
std = stash drop
[commit]
template = D:/ProgramFiles/Git/.githooks/commit-template.txt