rules: add checkout branch

This commit is contained in:
iff 2023-08-04 01:53:34 +02:00
parent 5030a118d2
commit 0646317abc

View file

@ -97,3 +97,14 @@ suggest = [
git pull --set-upstream origin {{shell(git rev-parse --abbrev-ref HEAD)}}
git pull'''
]
[[match_err]]
pattern = [
"a branch named"
]
suggest = [
'''
#[cmd_contains(branch)]
git checkout {{command[2]}}
'''
]