TIL this is an option.
This commit is contained in:
parent
e84529d603
commit
0cee70f4ec
|
@ -12,13 +12,15 @@
|
|||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[pull]
|
||||
ff = only
|
||||
|
||||
[alias]
|
||||
ap = add -p
|
||||
b = branch
|
||||
c = commit
|
||||
lg = log --graph --pretty=format:'%C(auto)%h%d %s %C(blue)%ci %C(green)%an%Creset'
|
||||
p = push
|
||||
pf = pull --ff-only
|
||||
pr = pull --rebase
|
||||
pull-request = !sh -c \"git fetch upstream pull/${1}/head:pr_${1} && git worktree add ../$(basename $(git rev-parse --show-toplevel))-pr-${1} pr_${1}\"
|
||||
remote-gh = "!f() { git remote add $1 https://github.com/$1/$(basename $(pwd))/; git fetch $1; }; f"
|
||||
|
|
Loading…
Reference in New Issue