编辑.gitconfig文件, 加入以下内容
[alias]
s = status
mnff = merge --no-ff
co = checkout
cob = checkout -b
ci = commit
br = branch
cco = fetch -p origin
cc = remote prune origin
pom = pull origin master
unstage = reset HEAD --
last = log -1 HEAD
aac = !git add -A && git commit -m
auc = !git add -u && git commit -m
undo = reset HEAD~1 --mixed
res = !git reset --hard
done = !git push origin HEAD
本文档详细介绍了如何编辑.gitconfig文件,以添加一系列常用的Git alias命令,包括版本控制、分支管理、合并等,提升开发者的效率。
823

被折叠的 条评论
为什么被折叠?



