问题:有什么好的Git 工作流 #53
Unanswered
Linya-IronMan
asked this question in
Q&A
Replies: 1 comment 2 replies
-
我现在cherry-pick之类复杂命令,用的是命令行下的可视化的 lazygit,功能非常强大。 https://www.youtube.com/watch?v=CPLdltN7wgE&t=355s 解决冲突好像我没啥好方法,编辑文本,配合手敲命令。 我翻了一下,以前还用过下边这个 git 命令简写 ## Better Git Logs.
### Based EMOJI-LOG (https://github.com/ahmadawais/Emoji-Log).
alias gd='git diff'
alias gds='git diff --staged'
function gl() {
git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
}
function gbr() {
git branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
}
function gs() {
git status
}
function ga() {
git add "$*"
}
function gm() {
git commit -m "$*"
}
# Git Commit, Add all and Push — in one step.
function gcap() {
git add . && git commit -m "$*" && git push
}
# NEW.
function gnew() {
gm "📦 NEW: $@"
}
# IMPROVE.
function gimp() {
gm "👌 IMPROVE: $@"
}
# FIX.
function gfix() {
gm "🐛 FIX: $@"
}
# RELEASE.
function grlz() {
gm "🚀 RELEASE: $@"
}
# DOC.
function gdoc() {
gm "📖 DOC: $@"
}
# TEST.
function gtst() {
gm "🤖 TEST: $@"
}
# BREAKING CHANGE.
function gbrk() {
gm "‼️ BREAKING: $@"
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在 VScode 的时候,有比较丰富的插件,可视化界面比较好。比如
那么在nvim中有什么比较好的方式完成上面的几种效果么?
Beta Was this translation helpful? Give feedback.
All reactions